store-scrapper-js-common 1.0.143 → 1.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
1
  import { ProcessProductCategoryDto } from './process-product-category.dto';
2
+ import { ProxyConfigDto } from './proxy-config.dto';
3
+ import { QueueConfigDto } from './queue-config.dto';
2
4
  import { StoreConfig } from './store-config.dto';
3
5
  import { TelegramQueueCommandDto } from './telegram-queue-command.dto';
4
- export { ProcessProductCategoryDto, TelegramQueueCommandDto, StoreConfig };
6
+ export { ProcessProductCategoryDto, TelegramQueueCommandDto, StoreConfig, QueueConfigDto, ProxyConfigDto, };
package/dist/dto/index.js CHANGED
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StoreConfig = exports.TelegramQueueCommandDto = exports.ProcessProductCategoryDto = void 0;
3
+ exports.ProxyConfigDto = exports.QueueConfigDto = exports.StoreConfig = exports.TelegramQueueCommandDto = exports.ProcessProductCategoryDto = void 0;
4
4
  const process_product_category_dto_1 = require("./process-product-category.dto");
5
5
  Object.defineProperty(exports, "ProcessProductCategoryDto", { enumerable: true, get: function () { return process_product_category_dto_1.ProcessProductCategoryDto; } });
6
+ const proxy_config_dto_1 = require("./proxy-config.dto");
7
+ Object.defineProperty(exports, "ProxyConfigDto", { enumerable: true, get: function () { return proxy_config_dto_1.ProxyConfigDto; } });
8
+ const queue_config_dto_1 = require("./queue-config.dto");
9
+ Object.defineProperty(exports, "QueueConfigDto", { enumerable: true, get: function () { return queue_config_dto_1.QueueConfigDto; } });
6
10
  const store_config_dto_1 = require("./store-config.dto");
7
11
  Object.defineProperty(exports, "StoreConfig", { enumerable: true, get: function () { return store_config_dto_1.StoreConfig; } });
8
12
  const telegram_queue_command_dto_1 = require("./telegram-queue-command.dto");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["dto/index.ts"],"names":[],"mappings":";;;AAAA,iFAA2E;AAIlE,0GAJA,wDAAyB,OAIA;AAHlC,yDAAiD;AAGY,4FAHpD,8BAAW,OAGoD;AAFxE,6EAAuE;AAEnC,wGAF3B,oDAAuB,OAE2B","sourcesContent":["import { ProcessProductCategoryDto } from './process-product-category.dto';\nimport { StoreConfig } from './store-config.dto';\nimport { TelegramQueueCommandDto } from './telegram-queue-command.dto';\n\nexport { ProcessProductCategoryDto, TelegramQueueCommandDto, StoreConfig };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["dto/index.ts"],"names":[],"mappings":";;;AAAA,iFAA2E;AAOzE,0GAPO,wDAAyB,OAOP;AAN3B,yDAAoD;AAM+B,+FAN1E,iCAAc,OAM0E;AALjG,yDAAoD;AAKe,+FAL1D,iCAAc,OAK0D;AAJjF,yDAAiD;AAIK,4FAJ7C,8BAAW,OAI6C;AAHjE,6EAAuE;AAG1C,wGAHpB,oDAAuB,OAGoB","sourcesContent":["import { ProcessProductCategoryDto } from './process-product-category.dto';\nimport { ProxyConfigDto } from './proxy-config.dto';\nimport { QueueConfigDto } from './queue-config.dto';\nimport { StoreConfig } from './store-config.dto';\nimport { TelegramQueueCommandDto } from './telegram-queue-command.dto';\n\nexport {\n ProcessProductCategoryDto, TelegramQueueCommandDto, StoreConfig, QueueConfigDto, ProxyConfigDto,\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { Keyword } from '../entities';
1
+ import { Keyword } from '../entities/keyword';
2
2
  export declare class ProcessProductCategoryDto {
3
3
  _id: string;
4
4
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"process-product-category.dto.js","sourceRoot":"/","sources":["dto/process-product-category.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,yBAAyB;CAcrC;AAdD,8DAcC","sourcesContent":["import { Keyword } from '../entities';\n\nexport class ProcessProductCategoryDto {\n _id: string;\n\n name: string;\n\n category: string;\n\n categoryPath: string;\n\n sku: string;\n\n storeRef: string;\n\n categoryKeywords?: Keyword[];\n}\n"]}
1
+ {"version":3,"file":"process-product-category.dto.js","sourceRoot":"/","sources":["dto/process-product-category.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,yBAAyB;CAcrC;AAdD,8DAcC","sourcesContent":["import { Keyword } from '../entities/keyword';\n\nexport class ProcessProductCategoryDto {\n _id: string;\n\n name: string;\n\n category: string;\n\n categoryPath: string;\n\n sku: string;\n\n storeRef: string;\n\n categoryKeywords?: Keyword[];\n}\n"]}
@@ -0,0 +1,9 @@
1
+ export declare class ProxyConfigDto {
2
+ host: string;
3
+ port: number;
4
+ auth?: {
5
+ username: string;
6
+ password: string;
7
+ };
8
+ protocol?: string;
9
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProxyConfigDto = void 0;
4
+ class ProxyConfigDto {
5
+ }
6
+ exports.ProxyConfigDto = ProxyConfigDto;
7
+ //# sourceMappingURL=proxy-config.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxy-config.dto.js","sourceRoot":"/","sources":["dto/proxy-config.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;CAW1B;AAXD,wCAWC","sourcesContent":["export class ProxyConfigDto {\n host: string;\n\n port: number;\n\n auth?: {\n username: string;\n password: string;\n };\n\n protocol?: string;\n}\n"]}
@@ -0,0 +1,8 @@
1
+ export declare class QueueConfigDto {
2
+ name?: string;
3
+ concurrency?: number;
4
+ rateLimiter?: {
5
+ max: number;
6
+ duration: number;
7
+ };
8
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueueConfigDto = void 0;
4
+ class QueueConfigDto {
5
+ }
6
+ exports.QueueConfigDto = QueueConfigDto;
7
+ //# sourceMappingURL=queue-config.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue-config.dto.js","sourceRoot":"/","sources":["dto/queue-config.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;CAW1B;AAXD,wCAWC","sourcesContent":["export class QueueConfigDto {\n name?: string;\n\n concurrency?: number;\n\n rateLimiter?: {\n /** Max numbers of jobs processed */\n max: number,\n /** Per duration in milliseconds */\n duration: number\n }\n}\n"]}
@@ -1,3 +1,5 @@
1
+ import { ProxyConfigDto } from './proxy-config.dto';
2
+ import { QueueConfigDto } from './queue-config.dto';
1
3
  export declare class StoreConfig {
2
4
  name: string;
3
5
  filterCategories?: string[];
@@ -11,14 +13,7 @@ export declare class StoreConfig {
11
13
  includeProductsWithoutStock?: boolean;
12
14
  queue?: string;
13
15
  persistQueue?: string;
14
- proxy?: {
15
- host: string;
16
- port: number;
17
- auth?: {
18
- username: string;
19
- password: string;
20
- };
21
- protocol?: string;
22
- };
16
+ proxy?: ProxyConfigDto;
17
+ queueConfig?: QueueConfigDto;
23
18
  [key: string]: any;
24
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"store-config.dto.js","sourceRoot":"/","sources":["dto/store-config.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;CAgCvB;AAhCD,kCAgCC","sourcesContent":["export class StoreConfig {\n name: string;\n\n filterCategories?: string[];\n\n skipCategories?: string[];\n\n cacheMenu?: boolean;\n\n cacheKey?: string;\n\n cacheTTL?: number;\n\n headers?: {[key: string]: any};\n\n includeProductsWithoutStock?: boolean;\n\n queue?: string;\n\n persistQueue?: string;\n\n proxy?: {\n host: string;\n port: number;\n auth?: {\n username: string;\n password: string;\n };\n protocol?: string;\n }\n\n [key: string]: any\n}\n"]}
1
+ {"version":3,"file":"store-config.dto.js","sourceRoot":"/","sources":["dto/store-config.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,WAAW;CA0BvB;AA1BD,kCA0BC","sourcesContent":["import { ProxyConfigDto } from './proxy-config.dto';\nimport { QueueConfigDto } from './queue-config.dto';\n\nexport class StoreConfig {\n name: string;\n\n filterCategories?: string[];\n\n skipCategories?: string[];\n\n cacheMenu?: boolean;\n\n cacheKey?: string;\n\n cacheTTL?: number;\n\n headers?: {[key: string]: any};\n\n includeProductsWithoutStock?: boolean;\n\n queue?: string;\n\n persistQueue?: string;\n\n proxy?: ProxyConfigDto;\n\n queueConfig?: QueueConfigDto;\n\n [key: string]: any\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { StoreQueueConfig, Store, CountryEnum, PriorityEnum } from './store';
1
+ import { Store, CountryEnum, PriorityEnum } from './store';
2
2
  import { Product, UpdateReasonEnum, CurrencyEnum, ProductAttributes, ConditionalPrice } from './product';
3
3
  import { Price, MeasurementUnitEnum } from './price';
4
4
  import { Category } from './category';
@@ -9,4 +9,4 @@ import { AlertConditions } from './alert-conditions';
9
9
  import { PricesStats } from './prices-stats';
10
10
  import { CategoryEntity } from './category-entity';
11
11
  export declare const Entities: (typeof Keyword | typeof Price | typeof Product | typeof Store | typeof User)[];
12
- export { Store, Product, Price, Category, CategoryEntity, AbstractBase, Keyword, CONDITION_FIELD_ENUM, CONDITION_SCOPE, CONDITION_ENUM, CATEGORY_ENUM, User, AlertConditions, StoreQueueConfig, CountryEnum, PriorityEnum, CurrencyEnum, UpdateReasonEnum, ConditionalPrice, ProductAttributes, MeasurementUnitEnum, PricesStats, };
12
+ export { Store, Product, Price, Category, CategoryEntity, AbstractBase, Keyword, CONDITION_FIELD_ENUM, CONDITION_SCOPE, CONDITION_ENUM, CATEGORY_ENUM, User, AlertConditions, CountryEnum, PriorityEnum, CurrencyEnum, UpdateReasonEnum, ConditionalPrice, ProductAttributes, MeasurementUnitEnum, PricesStats, };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["entities/index.ts"],"names":[],"mappings":";;;AAAA,mCAEiB;AAoBf,sFArBkB,aAAK,OAqBlB;AACmE,4FAtB/C,mBAAW,OAsB+C;AAAE,6FAtB/C,oBAAY,OAsB+C;AApBnG,uCAEmB;AAiBV,wFAlBP,iBAAO,OAkBO;AAEA,iGApBL,0BAAgB,OAoBK;AAA9B,6FApB2B,sBAAY,OAoB3B;AAlBd,mCAAqD;AAgBnC,sFAhBT,aAAK,OAgBS;AAEgD,oGAlBvD,2BAAmB,OAkBuD;AAjB1F,yCAAsC;AAeb,yFAfhB,mBAAQ,OAegB;AAdjC,mDAA+C;AAcI,6FAd1C,4BAAY,OAc0C;AAb/D,uCAEmB;AAW8C,wFAZ/D,iBAAO,OAY+D;AACtD,8FAbP,uBAAa,OAaO;AAA7B,+FAbwB,wBAAc,OAaxB;AAD0D,qGAZhC,8BAAoB,OAYgC;AAAE,gGAZhC,yBAAe,OAYgC;AAV/G,iCAA8B;AAWG,qFAXxB,WAAI,OAWwB;AAVrC,yDAAqD;AAUd,gGAV9B,kCAAe,OAU8B;AATtD,iDAA6C;AAU+C,4FAVnF,0BAAW,OAUmF;AATvG,uDAAmD;AAOhB,+FAP1B,gCAAc,OAO0B;AALpC,QAAA,QAAQ,GAAG;IACtB,aAAK,EAAE,iBAAO,EAAE,aAAK,EAAE,iBAAO,EAAE,WAAI;CACrC,CAAC","sourcesContent":["import {\n StoreQueueConfig, Store, CountryEnum, PriorityEnum,\n} from './store';\nimport {\n Product, UpdateReasonEnum, CurrencyEnum, ProductAttributes, ConditionalPrice,\n} from './product';\nimport { Price, MeasurementUnitEnum } from './price';\nimport { Category } from './category';\nimport { AbstractBase } from './abstract-base';\nimport {\n Keyword, CATEGORY_ENUM, CONDITION_ENUM, CONDITION_FIELD_ENUM, CONDITION_SCOPE,\n} from './keyword';\nimport { User } from './user';\nimport { AlertConditions } from './alert-conditions';\nimport { PricesStats } from './prices-stats';\nimport { CategoryEntity } from './category-entity';\n\nexport const Entities = [\n Store, Product, Price, Keyword, User,\n];\n\nexport {\n Store, Product, Price, Category, CategoryEntity, AbstractBase, Keyword, CONDITION_FIELD_ENUM, CONDITION_SCOPE,\n CONDITION_ENUM, CATEGORY_ENUM, User, AlertConditions, StoreQueueConfig, CountryEnum, PriorityEnum,\n CurrencyEnum, UpdateReasonEnum, ConditionalPrice, ProductAttributes, MeasurementUnitEnum, PricesStats,\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["entities/index.ts"],"names":[],"mappings":";;;AAAA,mCAA2D;AAoBzD,sFApBO,aAAK,OAoBP;AACiD,4FArBxC,mBAAW,OAqBwC;AAAE,6FArBxC,oBAAY,OAqBwC;AApBjF,uCAEmB;AAiBV,wFAlBP,iBAAO,OAkBO;AAEA,iGApBL,0BAAgB,OAoBK;AAA9B,6FApB2B,sBAAY,OAoB3B;AAlBd,mCAAqD;AAgBnC,sFAhBT,aAAK,OAgBS;AAEgD,oGAlBvD,2BAAmB,OAkBuD;AAjB1F,yCAAsC;AAeb,yFAfhB,mBAAQ,OAegB;AAdjC,mDAA+C;AAcI,6FAd1C,4BAAY,OAc0C;AAb/D,uCAEmB;AAW8C,wFAZ/D,iBAAO,OAY+D;AACtD,8FAbP,uBAAa,OAaO;AAA7B,+FAbwB,wBAAc,OAaxB;AAD0D,qGAZhC,8BAAoB,OAYgC;AAAE,gGAZhC,yBAAe,OAYgC;AAV/G,iCAA8B;AAWG,qFAXxB,WAAI,OAWwB;AAVrC,yDAAqD;AAUd,gGAV9B,kCAAe,OAU8B;AATtD,iDAA6C;AAU+C,4FAVnF,0BAAW,OAUmF;AATvG,uDAAmD;AAOhB,+FAP1B,gCAAc,OAO0B;AALpC,QAAA,QAAQ,GAAG;IACtB,aAAK,EAAE,iBAAO,EAAE,aAAK,EAAE,iBAAO,EAAE,WAAI;CACrC,CAAC","sourcesContent":["import { Store, CountryEnum, PriorityEnum } from './store';\nimport {\n Product, UpdateReasonEnum, CurrencyEnum, ProductAttributes, ConditionalPrice,\n} from './product';\nimport { Price, MeasurementUnitEnum } from './price';\nimport { Category } from './category';\nimport { AbstractBase } from './abstract-base';\nimport {\n Keyword, CATEGORY_ENUM, CONDITION_ENUM, CONDITION_FIELD_ENUM, CONDITION_SCOPE,\n} from './keyword';\nimport { User } from './user';\nimport { AlertConditions } from './alert-conditions';\nimport { PricesStats } from './prices-stats';\nimport { CategoryEntity } from './category-entity';\n\nexport const Entities = [\n Store, Product, Price, Keyword, User,\n];\n\nexport {\n Store, Product, Price, Category, CategoryEntity, AbstractBase, Keyword, CONDITION_FIELD_ENUM, CONDITION_SCOPE,\n CONDITION_ENUM, CATEGORY_ENUM, User, AlertConditions, CountryEnum, PriorityEnum,\n CurrencyEnum, UpdateReasonEnum, ConditionalPrice, ProductAttributes, MeasurementUnitEnum, PricesStats,\n};\n"]}
@@ -1,15 +1,8 @@
1
1
  import { AbstractBase } from './abstract-base';
2
2
  import { CATEGORY_ENUM } from './keyword';
3
+ import { QueueConfigDto } from '../dto/queue-config.dto';
4
+ import { StoreConfig } from '../dto';
3
5
  import { CurrencyEnum } from './product';
4
- import { StoreConfig } from '../dto/store-config.dto';
5
- export interface StoreQueueConfig {
6
- name?: string;
7
- concurrency?: number;
8
- rateLimiter?: {
9
- max: number;
10
- duration: number;
11
- };
12
- }
13
6
  export declare enum PlatformEnum {
14
7
  VTEX = "vtex",
15
8
  CUSTOM_VTEX = "custom_vtex",
@@ -55,7 +48,7 @@ export declare class Store extends AbstractBase {
55
48
  enabled: boolean;
56
49
  queue: string;
57
50
  persistQueue: string;
58
- storeQueueConfig?: StoreQueueConfig[];
51
+ storeQueueConfig?: QueueConfigDto[];
59
52
  country?: CountryEnum | string;
60
53
  defaultCurrency?: CurrencyEnum | string;
61
54
  configs?: StoreConfig[];
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"/","sources":["entities/store.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAEiB;AACjB,qDAA6C;AAC7C,mDAA+C;AAgB/C,IAAY,YASX;AATD,WAAY,YAAY;IACpB,6BAAa,CAAA;IACb,2CAA2B,CAAA;IAC3B,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;IACzB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACvB,CAAC,EATW,YAAY,GAAZ,oB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ADC,gBAAM,EAAE;;2CACY;AAGrB;IADC,gBAAM,EAAE;;+CAC6B;AAGtC;IADC,gBAAM,EAAE;;sCACsB;AAG/B;IADC,gBAAM,EAAE;;8CAC+B;AAGxC;IADC,gBAAM,EAAE;;sCACe;AAGxB;IADC,gBAAM,EAAE;;wCACkB;AA/ClB,KAAK;IAFjB,gBAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC1B,gBAAM,CAAC,CAAC,KAAK,CAAC,CAAC;GACH,KAAK,CAgDjB;AAhDY,sBAAK","sourcesContent":["import {\n Column, Entity, Index, Unique,\n} from 'typeorm';\nimport { IsNotEmpty } from 'class-validator';\nimport { AbstractBase } from './abstract-base';\nimport { CATEGORY_ENUM } from './keyword';\nimport { CurrencyEnum } from './product';\nimport { StoreConfig } from '../dto/store-config.dto';\n\nexport interface StoreQueueConfig {\n name?: string;\n concurrency?: number;\n rateLimiter?: {\n /** Max numbers of jobs processed */\n max: number,\n /** Per duration in milliseconds */\n duration: number\n }\n}\n\nexport enum PlatformEnum {\n VTEX = 'vtex',\n CUSTOM_VTEX = 'custom_vtex',\n COMMERCE = 'commerce',\n MYBCAPPS = 'mybcapps',\n JUMPSELLER = 'jumpseller',\n MAGENTO = 'magento',\n SHOPIFY = 'shopify',\n ALGOLIA = 'algolia',\n}\n\nexport enum CountryEnum {\n CHILE = 'chile',\n ARGENTINA = 'argentina',\n URUGUAY = 'uruguay',\n PERU = 'peru',\n BRAZIL = 'brazil',\n USA = 'usa',\n SPAIN = 'spain',\n}\n\nexport enum PriorityEnum {\n VERY_HIGH = 'very_high',\n HIGH = 'high',\n MEDIUM = 'medium',\n LOW = 'low',\n\n SHOES_HIGH = 'shoes_high',\n SHOES_MEDIUM = 'shoes_medium',\n SHOES_LOW = 'shoes_low',\n\n TECNO_HIGH = 'tecno_high',\n TECNO_MEDIUM = 'tecno_medium',\n TECNO_LOW = 'tecno_low',\n\n ELECTRO_HIGH = 'electro_high',\n ELECTRO_MEDIUM = 'electro_medium',\n ELECTRO_LOW = 'electro_low',\n}\n\n@Entity({ name: 'stores' })\n@Unique(['url'])\nexport class Store extends AbstractBase {\n @Column({ nullable: false })\n @Index()\n @IsNotEmpty()\n name: string;\n\n @Column()\n displayName?: string;\n\n @Column({ nullable: false })\n @IsNotEmpty()\n url: string;\n\n @Column()\n categories?: CATEGORY_ENUM[];\n\n @Column()\n priority?: PriorityEnum | string;\n\n @Column()\n type: string;\n\n @Column()\n parentStoreRef?: string;\n\n @Column({ default: true, type: 'boolean' })\n enabled = true;\n\n @Column()\n queue: string;\n\n @Column()\n persistQueue: string;\n\n @Column()\n storeQueueConfig?: StoreQueueConfig[];\n\n @Column()\n country?: CountryEnum | string;\n\n @Column()\n defaultCurrency?: CurrencyEnum | string;\n\n @Column()\n configs?: StoreConfig[];\n\n @Column()\n platforms?: PlatformEnum[];\n}\n"]}
1
+ {"version":3,"file":"store.js","sourceRoot":"/","sources":["entities/store.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAEiB;AACjB,qDAA6C;AAC7C,mDAA+C;AAM/C,IAAY,YASX;AATD,WAAY,YAAY;IACpB,6BAAa,CAAA;IACb,2CAA2B,CAAA;IAC3B,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;IACzB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACvB,CAAC,EATW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QASvB;AAED,IAAY,WAQX;AARD,WAAY,WAAW;IACnB,8BAAe,CAAA;IACf,sCAAuB,CAAA;IACvB,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,0BAAW,CAAA;IACX,8BAAe,CAAA;AACnB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB;AAED,IAAY,YAiBX;AAjBD,WAAY,YAAY;IACpB,uCAAuB,CAAA;IACvB,6BAAa,CAAA;IACb,iCAAi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BAAK","sourcesContent":["import {\n Column, Entity, Index, Unique,\n} from 'typeorm';\nimport { IsNotEmpty } from 'class-validator';\nimport { AbstractBase } from './abstract-base';\nimport { CATEGORY_ENUM } from './keyword';\nimport { QueueConfigDto } from '../dto/queue-config.dto';\nimport { StoreConfig } from '../dto';\nimport { CurrencyEnum } from './product';\n\nexport enum PlatformEnum {\n VTEX = 'vtex',\n CUSTOM_VTEX = 'custom_vtex',\n COMMERCE = 'commerce',\n MYBCAPPS = 'mybcapps',\n JUMPSELLER = 'jumpseller',\n MAGENTO = 'magento',\n SHOPIFY = 'shopify',\n ALGOLIA = 'algolia',\n}\n\nexport enum CountryEnum {\n CHILE = 'chile',\n ARGENTINA = 'argentina',\n URUGUAY = 'uruguay',\n PERU = 'peru',\n BRAZIL = 'brazil',\n USA = 'usa',\n SPAIN = 'spain',\n}\n\nexport enum PriorityEnum {\n VERY_HIGH = 'very_high',\n HIGH = 'high',\n MEDIUM = 'medium',\n LOW = 'low',\n\n SHOES_HIGH = 'shoes_high',\n SHOES_MEDIUM = 'shoes_medium',\n SHOES_LOW = 'shoes_low',\n\n TECNO_HIGH = 'tecno_high',\n TECNO_MEDIUM = 'tecno_medium',\n TECNO_LOW = 'tecno_low',\n\n ELECTRO_HIGH = 'electro_high',\n ELECTRO_MEDIUM = 'electro_medium',\n ELECTRO_LOW = 'electro_low',\n}\n\n@Entity({ name: 'stores' })\n@Unique(['url'])\nexport class Store extends AbstractBase {\n @Column({ nullable: false })\n @Index()\n @IsNotEmpty()\n name: string;\n\n @Column()\n displayName?: string;\n\n @Column({ nullable: false })\n @IsNotEmpty()\n url: string;\n\n @Column()\n categories?: CATEGORY_ENUM[];\n\n @Column()\n priority?: PriorityEnum | string;\n\n @Column()\n type: string;\n\n @Column()\n parentStoreRef?: string;\n\n @Column({ default: true, type: 'boolean' })\n enabled = true;\n\n @Column()\n queue: string;\n\n @Column()\n persistQueue: string;\n\n @Column()\n storeQueueConfig?: QueueConfigDto[];\n\n @Column()\n country?: CountryEnum | string;\n\n @Column()\n defaultCurrency?: CurrencyEnum | string;\n\n @Column()\n configs?: StoreConfig[];\n\n @Column()\n platforms?: PlatformEnum[];\n}\n"]}
@@ -6,6 +6,15 @@ export declare enum TelegramQueueEnum {
6
6
  TELEGRAM_ALERT_PUBLIC_4 = "telegram_alert_public_60",
7
7
  TELEGRAM_ALERT_PUBLIC_5 = "telegram_alert_public_5",
8
8
  TELEGRAM_ALERT_PUBLIC_6 = "telegram_alert_public_6",
9
+ TELEGRAM_ALERT_PUBLIC_7 = "telegram_alert_public_7",
10
+ TELEGRAM_ALERT_PUBLIC_8 = "telegram_alert_public_8",
11
+ TELEGRAM_ALERT_PUBLIC_9 = "telegram_alert_public_9",
12
+ TELEGRAM_ALERT_PUBLIC_10 = "telegram_alert_public_10",
13
+ TELEGRAM_PRIVATE_1 = "telegram_private_1",
14
+ TELEGRAM_PRIVATE_2 = "telegram_private_2",
15
+ TELEGRAM_PRIVATE_3 = "telegram_private_3",
16
+ TELEGRAM_PRIVATE_4 = "telegram_private_4",
17
+ TELEGRAM_PRIVATE_5 = "telegram_private_5",
9
18
  TELEGRAM_CART_STOCK_ALERT = "telegram_cart_stock_alert",
10
19
  TELEGRAM_STOCK_ALERT = "telegram_stock_alert",
11
20
  TELEGRAM_STOCK_ALERT_PUBLIC = "telegram_stock_alert_public",
@@ -10,6 +10,15 @@ var TelegramQueueEnum;
10
10
  TelegramQueueEnum["TELEGRAM_ALERT_PUBLIC_4"] = "telegram_alert_public_60";
11
11
  TelegramQueueEnum["TELEGRAM_ALERT_PUBLIC_5"] = "telegram_alert_public_5";
12
12
  TelegramQueueEnum["TELEGRAM_ALERT_PUBLIC_6"] = "telegram_alert_public_6";
13
+ TelegramQueueEnum["TELEGRAM_ALERT_PUBLIC_7"] = "telegram_alert_public_7";
14
+ TelegramQueueEnum["TELEGRAM_ALERT_PUBLIC_8"] = "telegram_alert_public_8";
15
+ TelegramQueueEnum["TELEGRAM_ALERT_PUBLIC_9"] = "telegram_alert_public_9";
16
+ TelegramQueueEnum["TELEGRAM_ALERT_PUBLIC_10"] = "telegram_alert_public_10";
17
+ TelegramQueueEnum["TELEGRAM_PRIVATE_1"] = "telegram_private_1";
18
+ TelegramQueueEnum["TELEGRAM_PRIVATE_2"] = "telegram_private_2";
19
+ TelegramQueueEnum["TELEGRAM_PRIVATE_3"] = "telegram_private_3";
20
+ TelegramQueueEnum["TELEGRAM_PRIVATE_4"] = "telegram_private_4";
21
+ TelegramQueueEnum["TELEGRAM_PRIVATE_5"] = "telegram_private_5";
13
22
  TelegramQueueEnum["TELEGRAM_CART_STOCK_ALERT"] = "telegram_cart_stock_alert";
14
23
  TelegramQueueEnum["TELEGRAM_STOCK_ALERT"] = "telegram_stock_alert";
15
24
  TelegramQueueEnum["TELEGRAM_STOCK_ALERT_PUBLIC"] = "telegram_stock_alert_public";
@@ -1 +1 @@
1
- {"version":3,"file":"telegram-queue.enum.js","sourceRoot":"/","sources":["enums/telegram-queue.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBA+IX;AA/ID,WAAY,iBAAiB;IAC3B,sDAAiC,CAAA;IACjC,sEAAiD,CAAA;IACjD,8EAAyD,CAAA;IACzD,iFAA4D,CAAA;IAC5D,yEAAoD,CAAA;IACpD,wEAAmD,CAAA;IACnD,wEAAmD,CAAA;IACnD,4EAAuD,CAAA;IACvD,kEAA6C,CAAA;IAC7C,gFAA2D,CAAA;IAC3D,4EAAuD,CAAA;IACvD,0FAAqE,CAAA;IACrE,kFAA6D,CAAA;IAC7D,gGAA2E,CAAA;IAC3E,kFAA6D,CAAA;IAC7D,gGAA2E,CAAA;IAC3E,0EAAqD,CAAA;IACrD,wFAAmE,CAAA;IAEnE,sEAAiD,CAAA;IACjD,4EAAuD,CAAA;IACvD,wEAAmD,CAAA;IACnD,kEAA6C,CAAA;IAC7C,oEAA+C,CAAA;IAE/C,8EAAyD,CAAA;IACzD,8EAAyD,CAAA;IACzD,8EAAyD,CAAA;IACzD,8EAAyD,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Enum {\n TELEGRAM_ALERT = 'telegram_alert',\n TELEGRAM_ALERT_PUBLIC_1 = 'telegram_alert_public',\n TELEGRAM_ALERT_PUBLIC_2 = 'telegram_alert_public_non_vip',\n TELEGRAM_ALERT_PUBLIC_3 = 'telegram_alert_public_non_vip_60',\n TELEGRAM_ALERT_PUBLIC_4 = 'telegram_alert_public_60',\n TELEGRAM_ALERT_PUBLIC_5 = 'telegram_alert_public_5',\n TELEGRAM_ALERT_PUBLIC_6 = 'telegram_alert_public_6',\n TELEGRAM_CART_STOCK_ALERT = 'telegram_cart_stock_alert',\n TELEGRAM_STOCK_ALERT = 'telegram_stock_alert',\n TELEGRAM_STOCK_ALERT_PUBLIC = 'telegram_stock_alert_public',\n TELEGRAM_STOCK_DOWN_ALERT = 'telegram_stock_down_alert',\n TELEGRAM_STOCK_DOWN_ALERT_PUBLIC = 'telegram_stock_down_alert_public',\n TELEGRAM_CURRENT_PRICE_ALERT = 'telegram_current_price_alert',\n TELEGRAM_CURRENT_PRICE_ALERT_PUBLIC = 'telegram_current_price_alert_public',\n TELEGRAM_RETAIL_CUSTOM_ALERT = 'telegram_retail_custom_alert',\n TELEGRAM_RETAIL_CUSTOM_ALERT_PUBLIC = 'telegram_retail_custom_alert_public',\n TELEGRAM_LOW_RANGE_ALERT = 'telegram_low_range_alert',\n TELEGRAM_LOW_RANGE_ALERT_PUBLIC = 'telegram_low_range_alert_public',\n\n TELEGRAM_STOCKS_JORDAN = 'telegram_stocks_jordan',\n TELEGRAM_STOCKS_AIR_FORCE = 'telegram_stocks_air_force',\n TELEGRAM_STOCKS_AIR_MAX = 'telegram_stocks_air_max',\n TELEGRAM_STOCKS_DUNK = 'telegram_stocks_dunk',\n TELEGRAM_STOCKS_YEEZY = 'telegram_stocks_yeezy',\n\n TELEGRAM_RESELLER_PUBLIC_1 = 'telegram_reseller_public_1',\n TELEGRAM_RESELLER_PUBLIC_2 = 'telegram_reseller_public_2',\n TELEGRAM_RESELLER_PUBLIC_3 = 'telegram_reseller_public_3',\n TELEGRAM_RESELLER_PUBLIC_4 = 'telegram_reseller_public_4',\n TELEGRAM_RESELLER_PUBLIC_5 = 'telegram_reseller_public_5',\n TELEGRAM_RESELLER_PUBLIC_6 = 'telegram_reseller_public_6',\n TELEGRAM_RESELLER_PUBLIC_7 = 'telegram_reseller_public_7',\n TELEGRAM_RESELLER_PUBLIC_8 = 'telegram_reseller_public_8',\n TELEGRAM_RESELLER_PUBLIC_9 = 'telegram_reseller_public_9',\n TELEGRAM_RESELLER_PUBLIC_10 = 'telegram_reseller_public_10',\n\n TELEGRAM_RESELLER_1 = 'telegram_reseller_1',\n TELEGRAM_RESELLER_2 = 'telegram_reseller_2',\n TELEGRAM_RESELLER_3 = 'telegram_reseller_3',\n TELEGRAM_RESELLER_4 = 'telegram_reseller_4',\n TELEGRAM_RESELLER_5 = 'telegram_reseller_5',\n TELEGRAM_RESELLER_6 = 'telegram_reseller_6',\n TELEGRAM_RESELLER_7 = 'telegram_reseller_7',\n TELEGRAM_RESELLER_8 = 'telegram_reseller_8',\n TELEGRAM_RESELLER_9 = 'telegram_reseller_9',\n TELEGRAM_RESELLER_10 = 'telegram_reseller_10',\n TELEGRAM_RESELLER_11 = 'telegram_reseller_11',\n TELEGRAM_RESELLER_12 = 'telegram_reseller_12',\n TELEGRAM_RESELLER_13 = 'telegram_reseller_13',\n TELEGRAM_RESELLER_14 = 'telegram_reseller_14',\n TELEGRAM_RESELLER_15 = 'telegram_reseller_15',\n TELEGRAM_RESELLER_16 = 'telegram_reseller_16',\n TELEGRAM_RESELLER_17 = 'telegram_reseller_17',\n TELEGRAM_RESELLER_18 = 'telegram_reseller_18',\n TELEGRAM_RESELLER_19 = 'telegram_reseller_19',\n TELEGRAM_RESELLER_20 = 'telegram_reseller_20',\n TELEGRAM_RESELLER_21 = 'telegram_reseller_21',\n TELEGRAM_RESELLER_22 = 'telegram_reseller_22',\n TELEGRAM_RESELLER_23 = 'telegram_reseller_23',\n TELEGRAM_RESELLER_24 = 'telegram_reseller_24',\n TELEGRAM_RESELLER_25 = 'telegram_reseller_25',\n TELEGRAM_RESELLER_26 = 'telegram_reseller_26',\n TELEGRAM_RESELLER_27 = 'telegram_reseller_27',\n TELEGRAM_RESELLER_28 = 'telegram_reseller_28',\n TELEGRAM_RESELLER_29 = 'telegram_reseller_29',\n TELEGRAM_RESELLER_30 = 'telegram_reseller_30',\n TELEGRAM_RESELLER_31 = 'telegram_reseller_31',\n TELEGRAM_RESELLER_32 = 'telegram_reseller_32',\n TELEGRAM_RESELLER_33 = 'telegram_reseller_33',\n TELEGRAM_RESELLER_34 = 'telegram_reseller_34',\n TELEGRAM_RESELLER_35 = 'telegram_reseller_35',\n TELEGRAM_RESELLER_36 = 'telegram_reseller_36',\n TELEGRAM_RESELLER_37 = 'telegram_reseller_37',\n TELEGRAM_RESELLER_38 = 'telegram_reseller_38',\n TELEGRAM_RESELLER_39 = 'telegram_reseller_39',\n TELEGRAM_RESELLER_40 = 'telegram_reseller_40',\n TELEGRAM_RESELLER_41 = 'telegram_reseller_41',\n TELEGRAM_RESELLER_42 = 'telegram_reseller_42',\n TELEGRAM_RESELLER_43 = 'telegram_reseller_43',\n TELEGRAM_RESELLER_44 = 'telegram_reseller_44',\n TELEGRAM_RESELLER_45 = 'telegram_reseller_45',\n TELEGRAM_RESELLER_46 = 'telegram_reseller_46',\n TELEGRAM_RESELLER_47 = 'telegram_reseller_47',\n TELEGRAM_RESELLER_48 = 'telegram_reseller_48',\n TELEGRAM_RESELLER_49 = 'telegram_reseller_49',\n TELEGRAM_RESELLER_50 = 'telegram_reseller_50',\n TELEGRAM_RESELLER_51 = 'telegram_reseller_51',\n TELEGRAM_RESELLER_52 = 'telegram_reseller_52',\n TELEGRAM_RESELLER_53 = 'telegram_reseller_53',\n TELEGRAM_RESELLER_54 = 'telegram_reseller_54',\n TELEGRAM_RESELLER_55 = 'telegram_reseller_55',\n TELEGRAM_RESELLER_56 = 'telegram_reseller_56',\n TELEGRAM_RESELLER_57 = 'telegram_reseller_57',\n TELEGRAM_RESELLER_58 = 'telegram_reseller_58',\n TELEGRAM_RESELLER_59 = 'telegram_reseller_59',\n TELEGRAM_RESELLER_60 = 'telegram_reseller_60',\n TELEGRAM_RESELLER_61 = 'telegram_reseller_61',\n TELEGRAM_RESELLER_62 = 'telegram_reseller_62',\n TELEGRAM_RESELLER_63 = 'telegram_reseller_63',\n TELEGRAM_RESELLER_64 = 'telegram_reseller_64',\n TELEGRAM_RESELLER_65 = 'telegram_reseller_65',\n TELEGRAM_RESELLER_66 = 'telegram_reseller_66',\n TELEGRAM_RESELLER_67 = 'telegram_reseller_67',\n TELEGRAM_RESELLER_68 = 'telegram_reseller_68',\n TELEGRAM_RESELLER_69 = 'telegram_reseller_69',\n TELEGRAM_RESELLER_70 = 'telegram_reseller_70',\n TELEGRAM_RESELLER_71 = 'telegram_reseller_71',\n TELEGRAM_RESELLER_72 = 'telegram_reseller_72',\n TELEGRAM_RESELLER_73 = 'telegram_reseller_73',\n TELEGRAM_RESELLER_74 = 'telegram_reseller_74',\n TELEGRAM_RESELLER_75 = 'telegram_reseller_75',\n TELEGRAM_RESELLER_76 = 'telegram_reseller_76',\n TELEGRAM_RESELLER_77 = 'telegram_reseller_77',\n TELEGRAM_RESELLER_78 = 'telegram_reseller_78',\n TELEGRAM_RESELLER_79 = 'telegram_reseller_79',\n TELEGRAM_RESELLER_80 = 'telegram_reseller_80',\n\n TELEGRAM_RESELLER_CURRENT_PRICE_1 = 'telegram_reseller_current_price_1',\n TELEGRAM_RESELLER_CURRENT_PRICE_2 = 'telegram_reseller_current_price_2',\n TELEGRAM_RESELLER_CURRENT_PRICE_3 = 'telegram_reseller_current_price_3',\n TELEGRAM_RESELLER_CURRENT_PRICE_4 = 'telegram_reseller_current_price_4',\n TELEGRAM_RESELLER_CURRENT_PRICE_5 = 'telegram_reseller_current_price_5',\n TELEGRAM_RESELLER_CURRENT_PRICE_6 = 'telegram_reseller_current_price_6',\n TELEGRAM_RESELLER_CURRENT_PRICE_7 = 'telegram_reseller_current_price_7',\n TELEGRAM_RESELLER_CURRENT_PRICE_8 = 'telegram_reseller_current_price_8',\n TELEGRAM_RESELLER_CURRENT_PRICE_9 = 'telegram_reseller_current_price_9',\n TELEGRAM_RESELLER_CURRENT_PRICE_10 = 'telegram_reseller_current_price_10',\n TELEGRAM_RESELLER_CURRENT_PRICE_11 = 'telegram_reseller_current_price_11',\n TELEGRAM_RESELLER_CURRENT_PRICE_12 = 'telegram_reseller_current_price_12',\n TELEGRAM_RESELLER_CURRENT_PRICE_13 = 'telegram_reseller_current_price_13',\n TELEGRAM_RESELLER_CURRENT_PRICE_14 = 'telegram_reseller_current_price_14',\n TELEGRAM_RESELLER_CURRENT_PRICE_15 = 'telegram_reseller_current_price_15',\n TELEGRAM_RESELLER_CURRENT_PRICE_16 = 'telegram_reseller_current_price_16',\n TELEGRAM_RESELLER_CURRENT_PRICE_17 = 'telegram_reseller_current_price_17',\n TELEGRAM_RESELLER_CURRENT_PRICE_18 = 'telegram_reseller_current_price_18',\n TELEGRAM_RESELLER_CURRENT_PRICE_19 = 'telegram_reseller_current_price_19',\n TELEGRAM_RESELLER_CURRENT_PRICE_20 = 'telegram_reseller_current_price_20',\n TELEGRAM_RESELLER_CURRENT_PRICE_21 = 'telegram_reseller_current_price_21',\n TELEGRAM_RESELLER_CURRENT_PRICE_22 = 'telegram_reseller_current_price_22',\n TELEGRAM_RESELLER_CURRENT_PRICE_23 = 'telegram_reseller_current_price_23',\n TELEGRAM_RESELLER_CURRENT_PRICE_24 = 'telegram_reseller_current_price_24',\n TELEGRAM_RESELLER_CURRENT_PRICE_25 = 'telegram_reseller_current_price_25',\n}\n"]}
1
+ {"version":3,"file":"telegram-queue.enum.js","sourceRoot":"/","sources":["enums/telegram-queue.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBA0JX;AA1JD,WAAY,iBAAiB;IAC3B,sDAAiC,CAAA;IACjC,sEAAiD,CAAA;IACjD,8EAAyD,CAAA;IACzD,i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,CAAA;IAC7C,kEAA6C,CAAA;IAC7C,kEAA6C,CAAA;IAC7C,kEAA6C,CAAA;IAE7C,4FAAuE,CAAA;IACvE,4FAAuE,CAAA;IACvE,4FAAuE,CAAA;IACvE,4FAAuE,CAAA;IACvE,4FAAuE,CAAA;IACvE,4FAAuE,CAAA;IACvE,4FAAuE,CAAA;IACvE,4FAAuE,CAAA;IACvE,4FAAuE,CAAA;IACvE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;IACzE,8FAAyE,CAAA;AAC3E,CAAC,EA1JW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QA0J5B","sourcesContent":["export enum TelegramQueueEnum {\n TELEGRAM_ALERT = 'telegram_alert',\n TELEGRAM_ALERT_PUBLIC_1 = 'telegram_alert_public',\n TELEGRAM_ALERT_PUBLIC_2 = 'telegram_alert_public_non_vip',\n TELEGRAM_ALERT_PUBLIC_3 = 'telegram_alert_public_non_vip_60',\n TELEGRAM_ALERT_PUBLIC_4 = 'telegram_alert_public_60',\n TELEGRAM_ALERT_PUBLIC_5 = 'telegram_alert_public_5',\n TELEGRAM_ALERT_PUBLIC_6 = 'telegram_alert_public_6',\n TELEGRAM_ALERT_PUBLIC_7 = 'telegram_alert_public_7',\n TELEGRAM_ALERT_PUBLIC_8 = 'telegram_alert_public_8',\n TELEGRAM_ALERT_PUBLIC_9 = 'telegram_alert_public_9',\n TELEGRAM_ALERT_PUBLIC_10 = 'telegram_alert_public_10',\n\n TELEGRAM_PRIVATE_1 = 'telegram_private_1',\n TELEGRAM_PRIVATE_2 = 'telegram_private_2',\n TELEGRAM_PRIVATE_3 = 'telegram_private_3',\n TELEGRAM_PRIVATE_4 = 'telegram_private_4',\n TELEGRAM_PRIVATE_5 = 'telegram_private_5',\n\n TELEGRAM_CART_STOCK_ALERT = 'telegram_cart_stock_alert',\n TELEGRAM_STOCK_ALERT = 'telegram_stock_alert',\n TELEGRAM_STOCK_ALERT_PUBLIC = 'telegram_stock_alert_public',\n TELEGRAM_STOCK_DOWN_ALERT = 'telegram_stock_down_alert',\n TELEGRAM_STOCK_DOWN_ALERT_PUBLIC = 'telegram_stock_down_alert_public',\n TELEGRAM_CURRENT_PRICE_ALERT = 'telegram_current_price_alert',\n TELEGRAM_CURRENT_PRICE_ALERT_PUBLIC = 'telegram_current_price_alert_public',\n TELEGRAM_RETAIL_CUSTOM_ALERT = 'telegram_retail_custom_alert',\n TELEGRAM_RETAIL_CUSTOM_ALERT_PUBLIC = 'telegram_retail_custom_alert_public',\n TELEGRAM_LOW_RANGE_ALERT = 'telegram_low_range_alert',\n TELEGRAM_LOW_RANGE_ALERT_PUBLIC = 'telegram_low_range_alert_public',\n\n TELEGRAM_STOCKS_JORDAN = 'telegram_stocks_jordan',\n TELEGRAM_STOCKS_AIR_FORCE = 'telegram_stocks_air_force',\n TELEGRAM_STOCKS_AIR_MAX = 'telegram_stocks_air_max',\n TELEGRAM_STOCKS_DUNK = 'telegram_stocks_dunk',\n TELEGRAM_STOCKS_YEEZY = 'telegram_stocks_yeezy',\n\n TELEGRAM_RESELLER_PUBLIC_1 = 'telegram_reseller_public_1',\n TELEGRAM_RESELLER_PUBLIC_2 = 'telegram_reseller_public_2',\n TELEGRAM_RESELLER_PUBLIC_3 = 'telegram_reseller_public_3',\n TELEGRAM_RESELLER_PUBLIC_4 = 'telegram_reseller_public_4',\n TELEGRAM_RESELLER_PUBLIC_5 = 'telegram_reseller_public_5',\n TELEGRAM_RESELLER_PUBLIC_6 = 'telegram_reseller_public_6',\n TELEGRAM_RESELLER_PUBLIC_7 = 'telegram_reseller_public_7',\n TELEGRAM_RESELLER_PUBLIC_8 = 'telegram_reseller_public_8',\n TELEGRAM_RESELLER_PUBLIC_9 = 'telegram_reseller_public_9',\n TELEGRAM_RESELLER_PUBLIC_10 = 'telegram_reseller_public_10',\n\n TELEGRAM_RESELLER_1 = 'telegram_reseller_1',\n TELEGRAM_RESELLER_2 = 'telegram_reseller_2',\n TELEGRAM_RESELLER_3 = 'telegram_reseller_3',\n TELEGRAM_RESELLER_4 = 'telegram_reseller_4',\n TELEGRAM_RESELLER_5 = 'telegram_reseller_5',\n TELEGRAM_RESELLER_6 = 'telegram_reseller_6',\n TELEGRAM_RESELLER_7 = 'telegram_reseller_7',\n TELEGRAM_RESELLER_8 = 'telegram_reseller_8',\n TELEGRAM_RESELLER_9 = 'telegram_reseller_9',\n TELEGRAM_RESELLER_10 = 'telegram_reseller_10',\n TELEGRAM_RESELLER_11 = 'telegram_reseller_11',\n TELEGRAM_RESELLER_12 = 'telegram_reseller_12',\n TELEGRAM_RESELLER_13 = 'telegram_reseller_13',\n TELEGRAM_RESELLER_14 = 'telegram_reseller_14',\n TELEGRAM_RESELLER_15 = 'telegram_reseller_15',\n TELEGRAM_RESELLER_16 = 'telegram_reseller_16',\n TELEGRAM_RESELLER_17 = 'telegram_reseller_17',\n TELEGRAM_RESELLER_18 = 'telegram_reseller_18',\n TELEGRAM_RESELLER_19 = 'telegram_reseller_19',\n TELEGRAM_RESELLER_20 = 'telegram_reseller_20',\n TELEGRAM_RESELLER_21 = 'telegram_reseller_21',\n TELEGRAM_RESELLER_22 = 'telegram_reseller_22',\n TELEGRAM_RESELLER_23 = 'telegram_reseller_23',\n TELEGRAM_RESELLER_24 = 'telegram_reseller_24',\n TELEGRAM_RESELLER_25 = 'telegram_reseller_25',\n TELEGRAM_RESELLER_26 = 'telegram_reseller_26',\n TELEGRAM_RESELLER_27 = 'telegram_reseller_27',\n TELEGRAM_RESELLER_28 = 'telegram_reseller_28',\n TELEGRAM_RESELLER_29 = 'telegram_reseller_29',\n TELEGRAM_RESELLER_30 = 'telegram_reseller_30',\n TELEGRAM_RESELLER_31 = 'telegram_reseller_31',\n TELEGRAM_RESELLER_32 = 'telegram_reseller_32',\n TELEGRAM_RESELLER_33 = 'telegram_reseller_33',\n TELEGRAM_RESELLER_34 = 'telegram_reseller_34',\n TELEGRAM_RESELLER_35 = 'telegram_reseller_35',\n TELEGRAM_RESELLER_36 = 'telegram_reseller_36',\n TELEGRAM_RESELLER_37 = 'telegram_reseller_37',\n TELEGRAM_RESELLER_38 = 'telegram_reseller_38',\n TELEGRAM_RESELLER_39 = 'telegram_reseller_39',\n TELEGRAM_RESELLER_40 = 'telegram_reseller_40',\n TELEGRAM_RESELLER_41 = 'telegram_reseller_41',\n TELEGRAM_RESELLER_42 = 'telegram_reseller_42',\n TELEGRAM_RESELLER_43 = 'telegram_reseller_43',\n TELEGRAM_RESELLER_44 = 'telegram_reseller_44',\n TELEGRAM_RESELLER_45 = 'telegram_reseller_45',\n TELEGRAM_RESELLER_46 = 'telegram_reseller_46',\n TELEGRAM_RESELLER_47 = 'telegram_reseller_47',\n TELEGRAM_RESELLER_48 = 'telegram_reseller_48',\n TELEGRAM_RESELLER_49 = 'telegram_reseller_49',\n TELEGRAM_RESELLER_50 = 'telegram_reseller_50',\n TELEGRAM_RESELLER_51 = 'telegram_reseller_51',\n TELEGRAM_RESELLER_52 = 'telegram_reseller_52',\n TELEGRAM_RESELLER_53 = 'telegram_reseller_53',\n TELEGRAM_RESELLER_54 = 'telegram_reseller_54',\n TELEGRAM_RESELLER_55 = 'telegram_reseller_55',\n TELEGRAM_RESELLER_56 = 'telegram_reseller_56',\n TELEGRAM_RESELLER_57 = 'telegram_reseller_57',\n TELEGRAM_RESELLER_58 = 'telegram_reseller_58',\n TELEGRAM_RESELLER_59 = 'telegram_reseller_59',\n TELEGRAM_RESELLER_60 = 'telegram_reseller_60',\n TELEGRAM_RESELLER_61 = 'telegram_reseller_61',\n TELEGRAM_RESELLER_62 = 'telegram_reseller_62',\n TELEGRAM_RESELLER_63 = 'telegram_reseller_63',\n TELEGRAM_RESELLER_64 = 'telegram_reseller_64',\n TELEGRAM_RESELLER_65 = 'telegram_reseller_65',\n TELEGRAM_RESELLER_66 = 'telegram_reseller_66',\n TELEGRAM_RESELLER_67 = 'telegram_reseller_67',\n TELEGRAM_RESELLER_68 = 'telegram_reseller_68',\n TELEGRAM_RESELLER_69 = 'telegram_reseller_69',\n TELEGRAM_RESELLER_70 = 'telegram_reseller_70',\n TELEGRAM_RESELLER_71 = 'telegram_reseller_71',\n TELEGRAM_RESELLER_72 = 'telegram_reseller_72',\n TELEGRAM_RESELLER_73 = 'telegram_reseller_73',\n TELEGRAM_RESELLER_74 = 'telegram_reseller_74',\n TELEGRAM_RESELLER_75 = 'telegram_reseller_75',\n TELEGRAM_RESELLER_76 = 'telegram_reseller_76',\n TELEGRAM_RESELLER_77 = 'telegram_reseller_77',\n TELEGRAM_RESELLER_78 = 'telegram_reseller_78',\n TELEGRAM_RESELLER_79 = 'telegram_reseller_79',\n TELEGRAM_RESELLER_80 = 'telegram_reseller_80',\n\n TELEGRAM_RESELLER_CURRENT_PRICE_1 = 'telegram_reseller_current_price_1',\n TELEGRAM_RESELLER_CURRENT_PRICE_2 = 'telegram_reseller_current_price_2',\n TELEGRAM_RESELLER_CURRENT_PRICE_3 = 'telegram_reseller_current_price_3',\n TELEGRAM_RESELLER_CURRENT_PRICE_4 = 'telegram_reseller_current_price_4',\n TELEGRAM_RESELLER_CURRENT_PRICE_5 = 'telegram_reseller_current_price_5',\n TELEGRAM_RESELLER_CURRENT_PRICE_6 = 'telegram_reseller_current_price_6',\n TELEGRAM_RESELLER_CURRENT_PRICE_7 = 'telegram_reseller_current_price_7',\n TELEGRAM_RESELLER_CURRENT_PRICE_8 = 'telegram_reseller_current_price_8',\n TELEGRAM_RESELLER_CURRENT_PRICE_9 = 'telegram_reseller_current_price_9',\n TELEGRAM_RESELLER_CURRENT_PRICE_10 = 'telegram_reseller_current_price_10',\n TELEGRAM_RESELLER_CURRENT_PRICE_11 = 'telegram_reseller_current_price_11',\n TELEGRAM_RESELLER_CURRENT_PRICE_12 = 'telegram_reseller_current_price_12',\n TELEGRAM_RESELLER_CURRENT_PRICE_13 = 'telegram_reseller_current_price_13',\n TELEGRAM_RESELLER_CURRENT_PRICE_14 = 'telegram_reseller_current_price_14',\n TELEGRAM_RESELLER_CURRENT_PRICE_15 = 'telegram_reseller_current_price_15',\n TELEGRAM_RESELLER_CURRENT_PRICE_16 = 'telegram_reseller_current_price_16',\n TELEGRAM_RESELLER_CURRENT_PRICE_17 = 'telegram_reseller_current_price_17',\n TELEGRAM_RESELLER_CURRENT_PRICE_18 = 'telegram_reseller_current_price_18',\n TELEGRAM_RESELLER_CURRENT_PRICE_19 = 'telegram_reseller_current_price_19',\n TELEGRAM_RESELLER_CURRENT_PRICE_20 = 'telegram_reseller_current_price_20',\n TELEGRAM_RESELLER_CURRENT_PRICE_21 = 'telegram_reseller_current_price_21',\n TELEGRAM_RESELLER_CURRENT_PRICE_22 = 'telegram_reseller_current_price_22',\n TELEGRAM_RESELLER_CURRENT_PRICE_23 = 'telegram_reseller_current_price_23',\n TELEGRAM_RESELLER_CURRENT_PRICE_24 = 'telegram_reseller_current_price_24',\n TELEGRAM_RESELLER_CURRENT_PRICE_25 = 'telegram_reseller_current_price_25',\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "store-scrapper-js-common",
3
- "version": "1.0.143",
3
+ "version": "1.0.146",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/dto/index.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { ProcessProductCategoryDto } from './process-product-category.dto';
2
+ import { ProxyConfigDto } from './proxy-config.dto';
3
+ import { QueueConfigDto } from './queue-config.dto';
2
4
  import { StoreConfig } from './store-config.dto';
3
5
  import { TelegramQueueCommandDto } from './telegram-queue-command.dto';
4
6
 
5
- export { ProcessProductCategoryDto, TelegramQueueCommandDto, StoreConfig };
7
+ export {
8
+ ProcessProductCategoryDto, TelegramQueueCommandDto, StoreConfig, QueueConfigDto, ProxyConfigDto,
9
+ };
@@ -1,4 +1,4 @@
1
- import { Keyword } from '../entities';
1
+ import { Keyword } from '../entities/keyword';
2
2
 
3
3
  export class ProcessProductCategoryDto {
4
4
  _id: string;
@@ -0,0 +1,12 @@
1
+ export class ProxyConfigDto {
2
+ host: string;
3
+
4
+ port: number;
5
+
6
+ auth?: {
7
+ username: string;
8
+ password: string;
9
+ };
10
+
11
+ protocol?: string;
12
+ }
@@ -0,0 +1,12 @@
1
+ export class QueueConfigDto {
2
+ name?: string;
3
+
4
+ concurrency?: number;
5
+
6
+ rateLimiter?: {
7
+ /** Max numbers of jobs processed */
8
+ max: number,
9
+ /** Per duration in milliseconds */
10
+ duration: number
11
+ }
12
+ }
@@ -1,3 +1,6 @@
1
+ import { ProxyConfigDto } from './proxy-config.dto';
2
+ import { QueueConfigDto } from './queue-config.dto';
3
+
1
4
  export class StoreConfig {
2
5
  name: string;
3
6
 
@@ -19,15 +22,9 @@ export class StoreConfig {
19
22
 
20
23
  persistQueue?: string;
21
24
 
22
- proxy?: {
23
- host: string;
24
- port: number;
25
- auth?: {
26
- username: string;
27
- password: string;
28
- };
29
- protocol?: string;
30
- }
25
+ proxy?: ProxyConfigDto;
26
+
27
+ queueConfig?: QueueConfigDto;
31
28
 
32
29
  [key: string]: any
33
30
  }
@@ -1,6 +1,4 @@
1
- import {
2
- StoreQueueConfig, Store, CountryEnum, PriorityEnum,
3
- } from './store';
1
+ import { Store, CountryEnum, PriorityEnum } from './store';
4
2
  import {
5
3
  Product, UpdateReasonEnum, CurrencyEnum, ProductAttributes, ConditionalPrice,
6
4
  } from './product';
@@ -21,6 +19,6 @@ export const Entities = [
21
19
 
22
20
  export {
23
21
  Store, Product, Price, Category, CategoryEntity, AbstractBase, Keyword, CONDITION_FIELD_ENUM, CONDITION_SCOPE,
24
- CONDITION_ENUM, CATEGORY_ENUM, User, AlertConditions, StoreQueueConfig, CountryEnum, PriorityEnum,
22
+ CONDITION_ENUM, CATEGORY_ENUM, User, AlertConditions, CountryEnum, PriorityEnum,
25
23
  CurrencyEnum, UpdateReasonEnum, ConditionalPrice, ProductAttributes, MeasurementUnitEnum, PricesStats,
26
24
  };
@@ -4,19 +4,9 @@ import {
4
4
  import { IsNotEmpty } from 'class-validator';
5
5
  import { AbstractBase } from './abstract-base';
6
6
  import { CATEGORY_ENUM } from './keyword';
7
+ import { QueueConfigDto } from '../dto/queue-config.dto';
8
+ import { StoreConfig } from '../dto';
7
9
  import { CurrencyEnum } from './product';
8
- import { StoreConfig } from '../dto/store-config.dto';
9
-
10
- export interface StoreQueueConfig {
11
- name?: string;
12
- concurrency?: number;
13
- rateLimiter?: {
14
- /** Max numbers of jobs processed */
15
- max: number,
16
- /** Per duration in milliseconds */
17
- duration: number
18
- }
19
- }
20
10
 
21
11
  export enum PlatformEnum {
22
12
  VTEX = 'vtex',
@@ -95,7 +85,7 @@ export class Store extends AbstractBase {
95
85
  persistQueue: string;
96
86
 
97
87
  @Column()
98
- storeQueueConfig?: StoreQueueConfig[];
88
+ storeQueueConfig?: QueueConfigDto[];
99
89
 
100
90
  @Column()
101
91
  country?: CountryEnum | string;
@@ -6,6 +6,17 @@ export enum TelegramQueueEnum {
6
6
  TELEGRAM_ALERT_PUBLIC_4 = 'telegram_alert_public_60',
7
7
  TELEGRAM_ALERT_PUBLIC_5 = 'telegram_alert_public_5',
8
8
  TELEGRAM_ALERT_PUBLIC_6 = 'telegram_alert_public_6',
9
+ TELEGRAM_ALERT_PUBLIC_7 = 'telegram_alert_public_7',
10
+ TELEGRAM_ALERT_PUBLIC_8 = 'telegram_alert_public_8',
11
+ TELEGRAM_ALERT_PUBLIC_9 = 'telegram_alert_public_9',
12
+ TELEGRAM_ALERT_PUBLIC_10 = 'telegram_alert_public_10',
13
+
14
+ TELEGRAM_PRIVATE_1 = 'telegram_private_1',
15
+ TELEGRAM_PRIVATE_2 = 'telegram_private_2',
16
+ TELEGRAM_PRIVATE_3 = 'telegram_private_3',
17
+ TELEGRAM_PRIVATE_4 = 'telegram_private_4',
18
+ TELEGRAM_PRIVATE_5 = 'telegram_private_5',
19
+
9
20
  TELEGRAM_CART_STOCK_ALERT = 'telegram_cart_stock_alert',
10
21
  TELEGRAM_STOCK_ALERT = 'telegram_stock_alert',
11
22
  TELEGRAM_STOCK_ALERT_PUBLIC = 'telegram_stock_alert_public',