store-scrapper-js-common 1.0.77 → 1.0.78
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.
|
@@ -43,6 +43,7 @@ export declare class Product extends AbstractBase {
|
|
|
43
43
|
url: string;
|
|
44
44
|
storeRef: string;
|
|
45
45
|
storeName?: string;
|
|
46
|
+
branchStoreName?: string;
|
|
46
47
|
sellerName?: string;
|
|
47
48
|
price?: Price;
|
|
48
49
|
conditionalPrice?: ConditionalPrice;
|
|
@@ -57,12 +58,14 @@ export declare class Product extends AbstractBase {
|
|
|
57
58
|
attributes?: ProductAttributes;
|
|
58
59
|
homeDeliveryShipping?: boolean;
|
|
59
60
|
pickUpFromStoreShipping?: boolean;
|
|
61
|
+
fastDelivery?: boolean;
|
|
60
62
|
enabled?: boolean;
|
|
61
63
|
sourceUrl?: string;
|
|
62
64
|
updatedAt?: Date;
|
|
63
65
|
categoryKeywordNames?: string[];
|
|
64
66
|
categoryKeywords?: Keyword[];
|
|
65
67
|
processedPricesAt?: Date;
|
|
68
|
+
isMarketplace?: boolean;
|
|
66
69
|
currency?: CurrencyEnum;
|
|
67
70
|
updateReason?: UpdateReasonEnum;
|
|
68
71
|
nameHistory?: {
|
package/dist/entities/product.js
CHANGED
|
@@ -76,6 +76,10 @@ __decorate([
|
|
|
76
76
|
typeorm_1.Column(),
|
|
77
77
|
__metadata("design:type", String)
|
|
78
78
|
], Product.prototype, "storeName", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
typeorm_1.Column(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Product.prototype, "branchStoreName", void 0);
|
|
79
83
|
__decorate([
|
|
80
84
|
typeorm_1.Column(),
|
|
81
85
|
__metadata("design:type", String)
|
|
@@ -133,6 +137,10 @@ __decorate([
|
|
|
133
137
|
typeorm_1.Column(),
|
|
134
138
|
__metadata("design:type", Boolean)
|
|
135
139
|
], Product.prototype, "pickUpFromStoreShipping", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
typeorm_1.Column(),
|
|
142
|
+
__metadata("design:type", Boolean)
|
|
143
|
+
], Product.prototype, "fastDelivery", void 0);
|
|
136
144
|
__decorate([
|
|
137
145
|
typeorm_1.Column(),
|
|
138
146
|
__metadata("design:type", Boolean)
|
|
@@ -160,6 +168,10 @@ __decorate([
|
|
|
160
168
|
typeorm_1.Index(),
|
|
161
169
|
__metadata("design:type", Date)
|
|
162
170
|
], Product.prototype, "processedPricesAt", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
typeorm_1.Column(),
|
|
173
|
+
__metadata("design:type", Boolean)
|
|
174
|
+
], Product.prototype, "isMarketplace", void 0);
|
|
163
175
|
__decorate([
|
|
164
176
|
typeorm_1.Column(),
|
|
165
177
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.js","sourceRoot":"/","sources":["entities/product.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAGiB;AACjB,qDAA6C;AAC7C,mDAA+C;AAC/C,mCAAgC;AAChC,iDAA6C;AAG7C,IAAY,YAUX;AAVD,WAAY,YAAY;IACpB,2BAAW,CAAA;IACX,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,yCAAyB,CAAA;IACzB,8CAA8B,CAAA;IAC9B,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,2BAAW,CAAA;AACf,CAAC,EAVW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAUvB;AAED,IAAY,gBAQX;AARD,WAAY,gBAAgB;IACxB,iCAAa,CAAA;IACb,2CAAuB,CAAA;IACvB,mEAA+C,CAAA;IAC/C,yCAAqB,CAAA;IACrB,+CAA2B,CAAA;IAC3B,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;AACzB,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B;AAuBD,IAAa,OAAO,GAApB,MAAa,OAAQ,SA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CAAC;AAGd;IADC,gBAAM,EAAE;;iDAC2B;AAGpC;IADC,gBAAM,EAAE;8BACO,aAAK;8CAAC;AAGtB;IADC,gBAAM,EAAE;8BACG,aAAK;0CAAC;AAGlB;IADC,gBAAM,EAAE;8BACI,0BAAW;2CAAC;AAGzB;IADC,gBAAM,EAAE;;6CACc;AAGvB;IADC,gBAAM,EAAE;;qCACK;AAGd;IADC,gBAAM,EAAE;;sCACM;AAGf;IADC,gBAAM,EAAE;;yCACS;AAGlB;IADC,gBAAM,EAAE;;6CACa;AAGtB;IADC,gBAAM,EAAE;;2CACsB;AAG/B;IADC,gBAAM,EAAE;;qDACsB;AAG/B;IADC,gBAAM,EAAE;;wDACyB;AAGlC;IADC,gBAAM,EAAE;;6CACc;AAGvB;IADC,gBAAM,EAAE;;wCACS;AAGlB;IADC,gBAAM,EAAE;;0CACU;AAInB;IAFC,gBAAM,EAAE;IACR,eAAK,EAAE;8BACI,IAAI;0CAAC;AAIjB;IAFC,gBAAM,EAAE;IACR,eAAK,EAAE;;qDACwB;AAGhC;IADC,gBAAM,EAAE;;iDACoB;AAI7B;IAFC,gBAAM,EAAE;IACR,eAAK,EAAE;8BACY,IAAI;kDAAC;AAGzB;IADC,gBAAM,EAAE;;8CACe;AAGxB;IADC,gBAAM,EAAE;;yCACe;AAGxB;IADC,gBAAM,EAAE;;6CACuB;AAGhC;IADC,gBAAM,EAAE;;4CAIL;AAGJ;IADC,gBAAM,EAAE;;mDACmB;AAG5B;IADC,gBAAM,EAAE;;oDACoB;AAvHpB,OAAO;IAFnB,gBAAM,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC5B,gBAAM,CAAC,eAAe,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;GAChC,OAAO,CAwHnB;AAxHY,0BAAO","sourcesContent":["import {\n Column,\n Entity, Index, Unique,\n} from 'typeorm';\nimport { IsNotEmpty } from 'class-validator';\nimport { AbstractBase } from './abstract-base';\nimport { Price } from './price';\nimport { PricesStats } from './prices-stats';\nimport { Keyword } from './keyword';\n\nexport enum CurrencyEnum {\n CLP = 'clp',\n CMR_PTS = 'cmr_pts',\n PARIS_PTS = 'paris_pts',\n RIPLEY_PTS = 'ripley_pts',\n GENERAL_POINTS = 'general_pts',\n BRL = 'brl',\n PEN = 'PEN',\n ARS = 'ars',\n EUR = 'eur'\n}\n\nexport enum UpdateReasonEnum {\n TIME = 'time',\n NEW_PRICE = 'new_price',\n NEW_CONDITIONAL_PRICE = 'new_conditional_price',\n NEW_NAME = 'new_name',\n NEW_LISTING = 'new_listing',\n MISSING_DATA = 'missing_data',\n FIX_DATA = 'fix_data',\n}\n\nexport interface ProductAttributes {\n stock?: number;\n\n // TODO: Add enum\n color?: string;\n\n // TODO: Add enum\n size?: string;\n\n [key: string]: any;\n}\n\nexport interface ConditionalPrice {\n minAmount?: number;\n price?:number;\n cardRequired?: boolean;\n createdAt?: Date;\n}\n\n@Entity({ name: 'products' })\n@Unique('store_ref_sku', ['storeRef', 'sku'])\nexport class Product extends AbstractBase {\n @Column()\n name: string;\n\n @Column()\n brandName?: string;\n\n @Column()\n modelName?: string;\n\n @Column()\n @IsNotEmpty()\n @Index()\n sku: string;\n\n @Column()\n internalId?: string;\n\n @Column()\n @IsNotEmpty()\n url: string;\n\n @Column()\n @IsNotEmpty()\n @Index()\n storeRef: string;\n\n @Column()\n storeName?: string;\n\n @Column()\n branchStoreName?: string;\n\n @Column()\n sellerName?: string;\n\n @Column()\n @IsNotEmpty()\n price?: Price;\n\n @Column()\n conditionalPrice?: ConditionalPrice;\n\n @Column()\n previousPrice?: Price;\n\n @Column()\n bestPrice?: Price;\n\n @Column()\n priceStats?: PricesStats;\n\n @Column()\n priceHistory?: Price[];\n\n @Column()\n rank?: number;\n\n @Column()\n image?: string;\n\n @Column()\n category?: string;\n\n @Column()\n categoryPath?: string;\n\n @Column()\n attributes?: ProductAttributes;\n\n @Column()\n homeDeliveryShipping?: boolean;\n\n @Column()\n pickUpFromStoreShipping?: boolean;\n\n @Column()\n fastDelivery?: boolean;\n\n @Column()\n enabled?: boolean;\n\n @Column()\n sourceUrl?: string;\n\n @Column()\n @Index()\n updatedAt?: Date;\n\n @Column()\n @Index()\n categoryKeywordNames?: string[];\n\n @Column()\n categoryKeywords?: Keyword[];\n\n @Column()\n @Index()\n processedPricesAt?: Date;\n\n @Column()\n isMarketplace?: boolean;\n\n @Column()\n currency?: CurrencyEnum;\n\n @Column()\n updateReason?: UpdateReasonEnum;\n\n @Column()\n nameHistory?: {\n name: string,\n updatedAt: string,\n }[];\n\n @Column()\n parentProductIdRef?: string;\n\n @Column()\n parentProductSkuRef?: string;\n}\n"]}
|
package/package.json
CHANGED
package/src/entities/product.ts
CHANGED
|
@@ -81,6 +81,9 @@ export class Product extends AbstractBase {
|
|
|
81
81
|
@Column()
|
|
82
82
|
storeName?: string;
|
|
83
83
|
|
|
84
|
+
@Column()
|
|
85
|
+
branchStoreName?: string;
|
|
86
|
+
|
|
84
87
|
@Column()
|
|
85
88
|
sellerName?: string;
|
|
86
89
|
|
|
@@ -124,6 +127,9 @@ export class Product extends AbstractBase {
|
|
|
124
127
|
@Column()
|
|
125
128
|
pickUpFromStoreShipping?: boolean;
|
|
126
129
|
|
|
130
|
+
@Column()
|
|
131
|
+
fastDelivery?: boolean;
|
|
132
|
+
|
|
127
133
|
@Column()
|
|
128
134
|
enabled?: boolean;
|
|
129
135
|
|
|
@@ -145,6 +151,9 @@ export class Product extends AbstractBase {
|
|
|
145
151
|
@Index()
|
|
146
152
|
processedPricesAt?: Date;
|
|
147
153
|
|
|
154
|
+
@Column()
|
|
155
|
+
isMarketplace?: boolean;
|
|
156
|
+
|
|
148
157
|
@Column()
|
|
149
158
|
currency?: CurrencyEnum;
|
|
150
159
|
|