{"version":3,"sources":["node_modules/@vendasta/bulk-actions/fesm2020/vendasta-bulk-actions.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport { map } from 'rxjs/operators';\nimport * as i1 from '@angular/common/http';\nimport { HttpHeaders } from '@angular/common/http';\nfunction enumStringToValue$3(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass BulkProcessorDetails {\n static fromProto(proto) {\n let m = new BulkProcessorDetails();\n m = Object.assign(m, proto);\n if (proto.csvFile) {\n m.csvFile = BulkProcessorDetailsCSVFile.fromProto(proto.csvFile);\n }\n if (proto.userList) {\n m.userList = BulkProcessorDetailsUserList.fromProto(proto.userList);\n }\n if (proto.importUsers) {\n m.importUsers = BulkProcessorDetailsImportUsers.fromProto(proto.importUsers);\n }\n if (proto.scheduleCampaign) {\n m.scheduleCampaign = BulkProcessorDetailsScheduleCampaign.fromProto(proto.scheduleCampaign);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.csvFile !== 'undefined' && this.csvFile !== null) {\n toReturn['csvFile'] = 'toApiJson' in this.csvFile ? this.csvFile.toApiJson() : this.csvFile;\n }\n if (typeof this.userList !== 'undefined' && this.userList !== null) {\n toReturn['userList'] = 'toApiJson' in this.userList ? this.userList.toApiJson() : this.userList;\n }\n if (typeof this.importUsers !== 'undefined' && this.importUsers !== null) {\n toReturn['importUsers'] = 'toApiJson' in this.importUsers ? this.importUsers.toApiJson() : this.importUsers;\n }\n if (typeof this.scheduleCampaign !== 'undefined' && this.scheduleCampaign !== null) {\n toReturn['scheduleCampaign'] = 'toApiJson' in this.scheduleCampaign ? this.scheduleCampaign.toApiJson() : this.scheduleCampaign;\n }\n return toReturn;\n }\n}\nclass BulkProcessorDetailsCSVFile {\n static fromProto(proto) {\n let m = new BulkProcessorDetailsCSVFile();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fileUrl !== 'undefined') {\n toReturn['fileUrl'] = this.fileUrl;\n }\n return toReturn;\n }\n}\nclass BulkProcessorDetailsImportUsers {\n static fromProto(proto) {\n let m = new BulkProcessorDetailsImportUsers();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.userListId !== 'undefined') {\n toReturn['userListId'] = this.userListId;\n }\n if (typeof this.updateUsers !== 'undefined') {\n toReturn['updateUsers'] = this.updateUsers;\n }\n return toReturn;\n }\n}\nclass BulkProcessorDetailsScheduleCampaign {\n static fromProto(proto) {\n let m = new BulkProcessorDetailsScheduleCampaign();\n m = Object.assign(m, proto);\n if (proto.scheduleOn) {\n m.scheduleOn = new Date(proto.scheduleOn);\n }\n if (proto.sender) {\n m.sender = BulkProcessorDetailsScheduleCampaignSender.fromProto(proto.sender);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.campaignId !== 'undefined') {\n toReturn['campaignId'] = this.campaignId;\n }\n if (typeof this.scheduleOn !== 'undefined' && this.scheduleOn !== null) {\n toReturn['scheduleOn'] = 'toApiJson' in this.scheduleOn ? this.scheduleOn.toApiJson() : this.scheduleOn;\n }\n if (typeof this.sender !== 'undefined' && this.sender !== null) {\n toReturn['sender'] = 'toApiJson' in this.sender ? this.sender.toApiJson() : this.sender;\n }\n if (typeof this.defaultAccountGroupId !== 'undefined') {\n toReturn['defaultAccountGroupId'] = this.defaultAccountGroupId;\n }\n return toReturn;\n }\n}\nclass BulkProcessorDetailsScheduleCampaignSender {\n static fromProto(proto) {\n let m = new BulkProcessorDetailsScheduleCampaignSender();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.email !== 'undefined') {\n toReturn['email'] = this.email;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n return toReturn;\n }\n}\nclass BulkProcessorDetailsUserList {\n static fromProto(proto) {\n let m = new BulkProcessorDetailsUserList();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.userListId !== 'undefined') {\n toReturn['userListId'] = this.userListId;\n }\n return toReturn;\n }\n}\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar BulkProcessorType = /*#__PURE__*/function (BulkProcessorType) {\n BulkProcessorType[BulkProcessorType[\"BULK_PROCESSOR_TYPE_INVALID\"] = 0] = \"BULK_PROCESSOR_TYPE_INVALID\";\n BulkProcessorType[BulkProcessorType[\"BULK_PROCESSOR_TYPE_IMPORT_USERS\"] = 1] = \"BULK_PROCESSOR_TYPE_IMPORT_USERS\";\n BulkProcessorType[BulkProcessorType[\"BULK_PROCESSOR_TYPE_SCHEDULE_CAMPAIGN\"] = 2] = \"BULK_PROCESSOR_TYPE_SCHEDULE_CAMPAIGN\";\n return BulkProcessorType;\n}(BulkProcessorType || {});\n// *********************************\n\nfunction enumStringToValue$2(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass ActionListKey {\n static fromProto(proto) {\n let m = new ActionListKey();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.actionListId !== 'undefined') {\n toReturn['actionListId'] = this.actionListId;\n }\n return toReturn;\n }\n}\nclass AddActionListItemsRequest {\n static fromProto(proto) {\n let m = new AddActionListItemsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.actionListId !== 'undefined') {\n toReturn['actionListId'] = this.actionListId;\n }\n if (typeof this.itemIds !== 'undefined') {\n toReturn['itemIds'] = this.itemIds;\n }\n return toReturn;\n }\n}\nclass BulkActionInstanceStatus {\n static fromProto(proto) {\n let m = new BulkActionInstanceStatus();\n m = Object.assign(m, proto);\n if (proto.processedItems) {\n m.processedItems = parseInt(proto.processedItems, 10);\n }\n if (proto.totalItems) {\n m.totalItems = parseInt(proto.totalItems, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.instanceId !== 'undefined') {\n toReturn['instanceId'] = this.instanceId;\n }\n if (typeof this.processedItems !== 'undefined') {\n toReturn['processedItems'] = this.processedItems;\n }\n if (typeof this.totalItems !== 'undefined') {\n toReturn['totalItems'] = this.totalItems;\n }\n if (typeof this.errors !== 'undefined') {\n toReturn['errors'] = this.errors;\n }\n if (typeof this.actionDisplayName !== 'undefined') {\n toReturn['actionDisplayName'] = this.actionDisplayName;\n }\n if (typeof this.isFinalized !== 'undefined') {\n toReturn['isFinalized'] = this.isFinalized;\n }\n return toReturn;\n }\n}\nclass ComputeActionListIDsRequest {\n static fromProto(proto) {\n let m = new ComputeActionListIDsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.names !== 'undefined') {\n toReturn['names'] = this.names;\n }\n return toReturn;\n }\n}\nclass ComputeActionListIDsResponse {\n static fromProto(proto) {\n let m = new ComputeActionListIDsResponse();\n m = Object.assign(m, proto);\n if (proto.nameIdMapping) {\n m.nameIdMapping = Object.keys(proto.nameIdMapping).reduce((obj, k) => {\n obj[k] = proto.nameIdMapping[k];\n return obj;\n }, {});\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.nameIdMapping !== 'undefined' && this.nameIdMapping !== null) {\n toReturn['nameIdMapping'] = 'toApiJson' in this.nameIdMapping ? this.nameIdMapping.toApiJson() : this.nameIdMapping;\n }\n return toReturn;\n }\n}\nclass CreateActionListRequest {\n static fromProto(proto) {\n let m = new CreateActionListRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.itemIds !== 'undefined') {\n toReturn['itemIds'] = this.itemIds;\n }\n if (typeof this.displayName !== 'undefined') {\n toReturn['displayName'] = this.displayName;\n }\n if (typeof this.actionListId !== 'undefined') {\n toReturn['actionListId'] = this.actionListId;\n }\n return toReturn;\n }\n}\nclass CreateActionListResponse {\n static fromProto(proto) {\n let m = new CreateActionListResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.actionListId !== 'undefined') {\n toReturn['actionListId'] = this.actionListId;\n }\n return toReturn;\n }\n}\nclass DeleteActionListRequest {\n static fromProto(proto) {\n let m = new DeleteActionListRequest();\n m = Object.assign(m, proto);\n if (proto.actionListKey) {\n m.actionListKey = ActionListKey.fromProto(proto.actionListKey);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.actionListKey !== 'undefined' && this.actionListKey !== null) {\n toReturn['actionListKey'] = 'toApiJson' in this.actionListKey ? this.actionListKey.toApiJson() : this.actionListKey;\n }\n return toReturn;\n }\n}\nclass GenerateUploadSignedURLRequest {\n static fromProto(proto) {\n let m = new GenerateUploadSignedURLRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fileName !== 'undefined') {\n toReturn['fileName'] = this.fileName;\n }\n if (typeof this.contentType !== 'undefined') {\n toReturn['contentType'] = this.contentType;\n }\n return toReturn;\n }\n}\nclass GenerateUploadSignedURLResponse {\n static fromProto(proto) {\n let m = new GenerateUploadSignedURLResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.signedUrl !== 'undefined') {\n toReturn['signedUrl'] = this.signedUrl;\n }\n return toReturn;\n }\n}\nclass GetActionListItemIDsRequest {\n static fromProto(proto) {\n let m = new GetActionListItemIDsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.actionListId !== 'undefined') {\n toReturn['actionListId'] = this.actionListId;\n }\n return toReturn;\n }\n}\nclass GetActionListItemIDsResponse {\n static fromProto(proto) {\n let m = new GetActionListItemIDsResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.itemIds !== 'undefined') {\n toReturn['itemIds'] = this.itemIds;\n }\n return toReturn;\n }\n}\nclass GetBulkActionInstanceItemIDsRequest {\n static fromProto(proto) {\n let m = new GetBulkActionInstanceItemIDsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.instanceId !== 'undefined') {\n toReturn['instanceId'] = this.instanceId;\n }\n return toReturn;\n }\n}\nclass GetBulkActionInstanceItemIDsResponse {\n static fromProto(proto) {\n let m = new GetBulkActionInstanceItemIDsResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.bulkActionItemIds !== 'undefined') {\n toReturn['bulkActionItemIds'] = this.bulkActionItemIds;\n }\n return toReturn;\n }\n}\nclass InitiateBulkActionRequest {\n static fromProto(proto) {\n let m = new InitiateBulkActionRequest();\n m = Object.assign(m, proto);\n if (proto.actionListKey) {\n m.actionListKey = ActionListKey.fromProto(proto.actionListKey);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.actionListKey !== 'undefined' && this.actionListKey !== null) {\n toReturn['actionListKey'] = 'toApiJson' in this.actionListKey ? this.actionListKey.toApiJson() : this.actionListKey;\n }\n if (typeof this.instanceId !== 'undefined') {\n toReturn['instanceId'] = this.instanceId;\n }\n if (typeof this.hasFinalizeStep !== 'undefined') {\n toReturn['hasFinalizeStep'] = this.hasFinalizeStep;\n }\n return toReturn;\n }\n}\nclass InitiateBulkProcessorRequest {\n static fromProto(proto) {\n let m = new InitiateBulkProcessorRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue$2(BulkProcessorType, proto.type);\n }\n if (proto.details) {\n m.details = BulkProcessorDetails.fromProto(proto.details);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.details !== 'undefined' && this.details !== null) {\n toReturn['details'] = 'toApiJson' in this.details ? this.details.toApiJson() : this.details;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n return toReturn;\n }\n}\nclass InitiateBulkProcessorResponse {\n static fromProto(proto) {\n let m = new InitiateBulkProcessorResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n return toReturn;\n }\n}\nclass ListBulkActionStatusesForActionListRequest {\n static fromProto(proto) {\n let m = new ListBulkActionStatusesForActionListRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.actionListId !== 'undefined') {\n toReturn['actionListId'] = this.actionListId;\n }\n return toReturn;\n }\n}\nclass ListBulkActionStatusesForActionListResponse {\n static fromProto(proto) {\n let m = new ListBulkActionStatusesForActionListResponse();\n m = Object.assign(m, proto);\n if (proto.instances) {\n m.instances = proto.instances.map(BulkActionInstanceStatus.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.instances !== 'undefined' && this.instances !== null) {\n toReturn['instances'] = 'toApiJson' in this.instances ? this.instances.toApiJson() : this.instances;\n }\n return toReturn;\n }\n}\nclass ComputeActionListIDsResponseNameIdMappingEntry {\n static fromProto(proto) {\n let m = new ComputeActionListIDsResponseNameIdMappingEntry();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.key !== 'undefined') {\n toReturn['key'] = this.key;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass RemoveActionListItemsRequest {\n static fromProto(proto) {\n let m = new RemoveActionListItemsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.actionListId !== 'undefined') {\n toReturn['actionListId'] = this.actionListId;\n }\n if (typeof this.itemIds !== 'undefined') {\n toReturn['itemIds'] = this.itemIds;\n }\n return toReturn;\n }\n}\nclass ValidateFileRequest {\n static fromProto(proto) {\n let m = new ValidateFileRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue$2(BulkProcessorType, proto.type);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.fileUrl !== 'undefined') {\n toReturn['fileUrl'] = this.fileUrl;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n return toReturn;\n }\n}\nclass ValidateFileResponse {\n static fromProto(proto) {\n let m = new ValidateFileResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.errors !== 'undefined') {\n toReturn['errors'] = this.errors;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$1(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass ActionList {\n static fromProto(proto) {\n let m = new ActionList();\n m = Object.assign(m, proto);\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.actionListId !== 'undefined') {\n toReturn['actionListId'] = this.actionListId;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.displayName !== 'undefined') {\n toReturn['displayName'] = this.displayName;\n }\n if (typeof this.itemIds !== 'undefined') {\n toReturn['itemIds'] = this.itemIds;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.legacyHistoryId !== 'undefined') {\n toReturn['legacyHistoryId'] = this.legacyHistoryId;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass BulkActionInstance {\n static fromProto(proto) {\n let m = new BulkActionInstance();\n m = Object.assign(m, proto);\n if (proto.initiated) {\n m.initiated = new Date(proto.initiated);\n }\n if (proto.completed) {\n m.completed = new Date(proto.completed);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.instanceId !== 'undefined') {\n toReturn['instanceId'] = this.instanceId;\n }\n if (typeof this.actionListId !== 'undefined') {\n toReturn['actionListId'] = this.actionListId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n if (typeof this.itemIds !== 'undefined') {\n toReturn['itemIds'] = this.itemIds;\n }\n if (typeof this.error !== 'undefined') {\n toReturn['error'] = this.error;\n }\n if (typeof this.initiated !== 'undefined' && this.initiated !== null) {\n toReturn['initiated'] = 'toApiJson' in this.initiated ? this.initiated.toApiJson() : this.initiated;\n }\n if (typeof this.completed !== 'undefined' && this.completed !== null) {\n toReturn['completed'] = 'toApiJson' in this.completed ? this.completed.toApiJson() : this.completed;\n }\n return toReturn;\n }\n}\n\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'bulk-actions-api.vendasta-local.com',\n 'test': '',\n 'demo': 'bulk-actions-demo.apigateway.co',\n 'prod': 'bulk-actions-prod.apigateway.co',\n 'production': 'bulk-actions-prod.apigateway.co'\n};\nlet HostService = /*#__PURE__*/(() => {\n class HostService {\n get host() {\n return hostMap[environment.toLowerCase()];\n }\n get hostWithScheme() {\n return 'https://' + this.host;\n }\n }\n HostService.ɵfac = function HostService_Factory(t) {\n return new (t || HostService)();\n };\n HostService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: HostService,\n factory: HostService.ɵfac,\n providedIn: 'root'\n });\n return HostService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet ActionListsApiService = /*#__PURE__*/(() => {\n class ActionListsApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n createActionList(r) {\n const request = r.toApiJson ? r : new CreateActionListRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.ActionLists/CreateActionList\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateActionListResponse.fromProto(resp)));\n }\n deleteActionList(r) {\n const request = r.toApiJson ? r : new DeleteActionListRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.ActionLists/DeleteActionList\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n addActionListItems(r) {\n const request = r.toApiJson ? r : new AddActionListItemsRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.ActionLists/AddActionListItems\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n removeActionListItems(r) {\n const request = r.toApiJson ? r : new RemoveActionListItemsRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.ActionLists/RemoveActionListItems\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getActionListItemIDs(r) {\n const request = r.toApiJson ? r : new GetActionListItemIDsRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.ActionLists/GetActionListItemIDs\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetActionListItemIDsResponse.fromProto(resp)));\n }\n computeActionListId(r) {\n const request = r.toApiJson ? r : new ComputeActionListIDsRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.ActionLists/ComputeActionListID\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ComputeActionListIDsResponse.fromProto(resp)));\n }\n }\n ActionListsApiService.ɵfac = function ActionListsApiService_Factory(t) {\n return new (t || ActionListsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n ActionListsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ActionListsApiService,\n factory: ActionListsApiService.ɵfac,\n providedIn: 'root'\n });\n return ActionListsApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ActionListsSdkService = /*#__PURE__*/(() => {\n class ActionListsSdkService {\n constructor(delegate) {\n this.delegate = delegate;\n }\n getItemIDs(partnerId, marketId, actionListId) {\n return this.delegate.getActionListItemIDs({\n partnerId: partnerId,\n marketId: marketId,\n actionListId: actionListId\n }).pipe(map(resp => resp.itemIds));\n }\n }\n ActionListsSdkService.ɵfac = function ActionListsSdkService_Factory(t) {\n return new (t || ActionListsSdkService)(i0.ɵɵinject(ActionListsApiService));\n };\n ActionListsSdkService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ActionListsSdkService,\n factory: ActionListsSdkService.ɵfac,\n providedIn: 'root'\n });\n return ActionListsSdkService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet BulkProcessorApiService = /*#__PURE__*/(() => {\n class BulkProcessorApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n generateUploadSignedUrl(r) {\n const request = r.toApiJson ? r : new GenerateUploadSignedURLRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.BulkProcessor/GenerateUploadSignedURL\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GenerateUploadSignedURLResponse.fromProto(resp)));\n }\n initiateBulkProcessor(r) {\n const request = r.toApiJson ? r : new InitiateBulkProcessorRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.BulkProcessor/InitiateBulkProcessor\", request.toApiJson(), this.apiOptions()).pipe(map(resp => InitiateBulkProcessorResponse.fromProto(resp)));\n }\n validateFile(r) {\n const request = r.toApiJson ? r : new ValidateFileRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.BulkProcessor/ValidateFile\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ValidateFileResponse.fromProto(resp)));\n }\n }\n BulkProcessorApiService.ɵfac = function BulkProcessorApiService_Factory(t) {\n return new (t || BulkProcessorApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n BulkProcessorApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: BulkProcessorApiService,\n factory: BulkProcessorApiService.ɵfac,\n providedIn: 'root'\n });\n return BulkProcessorApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet BulkProcessorSdkService = /*#__PURE__*/(() => {\n class BulkProcessorSdkService {\n constructor(delegate) {\n this.delegate = delegate;\n }\n generateUploadSignedUrl(fileName, contentType) {\n return this.delegate.generateUploadSignedUrl({\n fileName,\n contentType\n }).pipe(map(resp => resp.signedUrl));\n }\n initiateImportUsers(partnerId, fileUrl, userListId, updateUsers) {\n const req = {\n type: BulkProcessorType.BULK_PROCESSOR_TYPE_IMPORT_USERS,\n partnerId: partnerId,\n details: {\n csvFile: {\n fileUrl: fileUrl\n },\n importUsers: {\n userListId: userListId,\n updateUsers: updateUsers\n }\n }\n };\n return this.delegate.initiateBulkProcessor(req).pipe(map(resp => resp.id));\n }\n scheduleCampaign(partnerId, userListId, campaignId, scheduleOn, defaultAccountGroupId, email, name) {\n const req = {\n type: BulkProcessorType.BULK_PROCESSOR_TYPE_SCHEDULE_CAMPAIGN,\n partnerId: partnerId,\n details: {\n userList: {\n userListId: userListId\n },\n scheduleCampaign: {\n campaignId: campaignId,\n scheduleOn: scheduleOn,\n defaultAccountGroupId: defaultAccountGroupId,\n sender: {\n email: email,\n name: name\n }\n }\n }\n };\n return this.delegate.initiateBulkProcessor(req).pipe(map(resp => resp.id));\n }\n validateImportUserFile(fileUrl, partnerId) {\n const req = {\n type: BulkProcessorType.BULK_PROCESSOR_TYPE_IMPORT_USERS,\n fileUrl: fileUrl,\n partnerId: partnerId\n };\n return this.delegate.validateFile(req).pipe(map(res => res.errors || []));\n }\n }\n BulkProcessorSdkService.ɵfac = function BulkProcessorSdkService_Factory(t) {\n return new (t || BulkProcessorSdkService)(i0.ɵɵinject(BulkProcessorApiService));\n };\n BulkProcessorSdkService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: BulkProcessorSdkService,\n factory: BulkProcessorSdkService.ɵfac,\n providedIn: 'root'\n });\n return BulkProcessorSdkService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet BulkActionStatusApiService = /*#__PURE__*/(() => {\n class BulkActionStatusApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n listBulkActionStatusesForActionList(r) {\n const request = r.toApiJson ? r : new ListBulkActionStatusesForActionListRequest(r);\n return this.http.post(this._host + \"/bulk_actions.v1beta1.BulkActionStatus/ListBulkActionStatusesForActionList\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListBulkActionStatusesForActionListResponse.fromProto(resp)));\n }\n }\n BulkActionStatusApiService.ɵfac = function BulkActionStatusApiService_Factory(t) {\n return new (t || BulkActionStatusApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n BulkActionStatusApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: BulkActionStatusApiService,\n factory: BulkActionStatusApiService.ɵfac,\n providedIn: 'root'\n });\n return BulkActionStatusApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet BulkActionsSdkStatusService = /*#__PURE__*/(() => {\n class BulkActionsSdkStatusService {\n constructor(delegate) {\n this.delegate = delegate;\n }\n list(partnerId, marketId, actionListId) {\n const req = new ListBulkActionStatusesForActionListRequest({\n partnerId: partnerId,\n marketId: marketId,\n actionListId: actionListId\n });\n return this.delegate.listBulkActionStatusesForActionList(req).pipe(map(r => fillMissingValues(r.instances)));\n }\n }\n BulkActionsSdkStatusService.ɵfac = function BulkActionsSdkStatusService_Factory(t) {\n return new (t || BulkActionsSdkStatusService)(i0.ɵɵinject(BulkActionStatusApiService));\n };\n BulkActionsSdkStatusService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: BulkActionsSdkStatusService,\n factory: BulkActionsSdkStatusService.ɵfac,\n providedIn: 'root'\n });\n return BulkActionsSdkStatusService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction fillMissingValues(resp) {\n return resp.map(v => {\n v.processedItems = v.processedItems || 0;\n v.totalItems = v.totalItems || 0;\n return v;\n });\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ActionListsSdkService, BulkActionsSdkStatusService, BulkProcessorSdkService, ListBulkActionStatusesForActionListRequest };\n"],"mappings":"uGAWA,IAAMA,EAAN,MAAMC,CAAqB,CACzB,OAAO,UAAUC,EAAO,CACtB,IAAIC,EAAI,IAAIF,EACZ,OAAAE,EAAI,OAAO,OAAOA,EAAGD,CAAK,EACtBA,EAAM,UACRC,EAAE,QAAUC,EAA4B,UAAUF,EAAM,OAAO,GAE7DA,EAAM,WACRC,EAAE,SAAWE,EAA6B,UAAUH,EAAM,QAAQ,GAEhEA,EAAM,cACRC,EAAE,YAAcG,EAAgC,UAAUJ,EAAM,WAAW,GAEzEA,EAAM,mBACRC,EAAE,iBAAmBI,EAAqC,UAAUL,EAAM,gBAAgB,GAErFC,CACT,CACA,YAAYK,EAAQ,CACbA,GAGL,OAAO,OAAO,KAAMA,CAAM,CAC5B,CACA,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IACdA,EAAE,eAAiBA,EAAE,gBAAkB,EACvCA,EAAE,WAAaA,EAAE,YAAc,EACxBA,EACR,CACH","names":["BulkProcessorDetails","_BulkProcessorDetails","proto","m","BulkProcessorDetailsCSVFile","BulkProcessorDetailsUserList","BulkProcessorDetailsImportUsers","BulkProcessorDetailsScheduleCampaign","kwargs","toReturn","_BulkProcessorDetailsCSVFile","_BulkProcessorDetailsImportUsers","_BulkProcessorDetailsScheduleCampaign","BulkProcessorDetailsScheduleCampaignSender","_BulkProcessorDetailsScheduleCampaignSender","_BulkProcessorDetailsUserList","BulkProcessorType","enumStringToValue$2","enumRef","value","BulkActionInstanceStatus","_BulkActionInstanceStatus","proto","m","kwargs","toReturn","GenerateUploadSignedURLRequest","_GenerateUploadSignedURLRequest","proto","m","kwargs","toReturn","GenerateUploadSignedURLResponse","_GenerateUploadSignedURLResponse","InitiateBulkProcessorRequest","_InitiateBulkProcessorRequest","proto","m","enumStringToValue$2","BulkProcessorType","BulkProcessorDetails","kwargs","toReturn","InitiateBulkProcessorResponse","_InitiateBulkProcessorResponse","ListBulkActionStatusesForActionListRequest","_ListBulkActionStatusesForActionListRequest","ListBulkActionStatusesForActionListResponse","_ListBulkActionStatusesForActionListResponse","BulkActionInstanceStatus","ValidateFileRequest","_ValidateFileRequest","proto","m","enumStringToValue$2","BulkProcessorType","kwargs","toReturn","ValidateFileResponse","_ValidateFileResponse","environment","hostMap","HostService","t","ɵɵdefineInjectable","BulkProcessorApiService","http","hostService","HttpHeaders","r","request","GenerateUploadSignedURLRequest","map","resp","GenerateUploadSignedURLResponse","InitiateBulkProcessorRequest","InitiateBulkProcessorResponse","ValidateFileRequest","ValidateFileResponse","t","ɵɵinject","HttpClient","HostService","ɵɵdefineInjectable","BulkProcessorSdkService","delegate","fileName","contentType","partnerId","fileUrl","userListId","updateUsers","req","BulkProcessorType","campaignId","scheduleOn","defaultAccountGroupId","email","name","res","BulkActionStatusApiService","ListBulkActionStatusesForActionListRequest","ListBulkActionStatusesForActionListResponse","BulkActionsSdkStatusService","marketId","actionListId","fillMissingValues","v"],"x_google_ignoreList":[0]}