merchi_sdk_ts 1.2.3 → 1.2.5

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.
@@ -205,6 +205,14 @@ var Domain = /** @class */ (function (_super) {
205
205
  Domain.property({ type: String }),
206
206
  __metadata("design:type", String)
207
207
  ], Domain.prototype, "scalablePressApiKey", void 0);
208
+ __decorate([
209
+ Domain.property({ type: String }),
210
+ __metadata("design:type", String)
211
+ ], Domain.prototype, "googleMerchantApiKey", void 0);
212
+ __decorate([
213
+ Domain.property({ type: String }),
214
+ __metadata("design:type", String)
215
+ ], Domain.prototype, "googleMerchantId", void 0);
208
216
  __decorate([
209
217
  Domain.property({ type: String }),
210
218
  __metadata("design:type", Object)
@@ -282,6 +282,26 @@ var Product = /** @class */ (function (_super) {
282
282
  Product.property({ type: String }),
283
283
  __metadata("design:type", String)
284
284
  ], Product.prototype, "aiContext", void 0);
285
+ __decorate([
286
+ Product.property({ type: String }),
287
+ __metadata("design:type", String)
288
+ ], Product.prototype, "googleMerchantCenterId", void 0);
289
+ __decorate([
290
+ Product.property({ type: String }),
291
+ __metadata("design:type", String)
292
+ ], Product.prototype, "googleMerchantCenterTitle", void 0);
293
+ __decorate([
294
+ Product.property({ type: String }),
295
+ __metadata("design:type", String)
296
+ ], Product.prototype, "googleMerchantCenterDescription", void 0);
297
+ __decorate([
298
+ Product.property({ type: String }),
299
+ __metadata("design:type", String)
300
+ ], Product.prototype, "googleMerchantCenterProductUrl", void 0);
301
+ __decorate([
302
+ Product.property({ type: String }),
303
+ __metadata("design:type", Number)
304
+ ], Product.prototype, "googleMerchantCenterPrice", void 0);
285
305
  __decorate([
286
306
  Product.property({ type: String }),
287
307
  __metadata("design:type", Object)
@@ -335,6 +335,7 @@ test('can list products with options set', function () {
335
335
  ['exclude_domains', '0,1'],
336
336
  ['exclude_jobs', '0,1'],
337
337
  ['group_buy_for_job_id', '88'],
338
+ ['google_merchant_center_exported', 'true'],
338
339
  ['group_buy_only', 'false'],
339
340
  ['in_domain', '2'],
340
341
  ['in_domain_name', 'example.com'],
package/dist/entity.js CHANGED
@@ -818,6 +818,10 @@ var Entity = /** @class */ (function () {
818
818
  fetchOptions.query.push(['group_buy_for_job_id',
819
819
  options.groupBuyForJobId.toString()]);
820
820
  }
821
+ if (options.googleMerchantCenterExported !== undefined) {
822
+ fetchOptions.query.push(['google_merchant_center_exported',
823
+ options.googleMerchantCenterExported.toString()]);
824
+ }
821
825
  if (options.section !== undefined) {
822
826
  fetchOptions.query.push(['section', options.section.toString()]);
823
827
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_ts",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:merchisdk/merchi_sdk_ts.git",
@@ -139,6 +139,12 @@ export class Domain extends Entity {
139
139
  @Domain.property({type: String})
140
140
  public scalablePressApiKey?: string;
141
141
 
142
+ @Domain.property({type: String})
143
+ public googleMerchantApiKey?: string;
144
+
145
+ @Domain.property({type: String})
146
+ public googleMerchantId?: string;
147
+
142
148
  @Domain.property({type: String})
143
149
  public socialBitchute?: string | null;
144
150
 
@@ -363,6 +363,7 @@ test('can list products with options set', () => {
363
363
  ['exclude_domains', '0,1'],
364
364
  ['exclude_jobs', '0,1'],
365
365
  ['group_buy_for_job_id', '88'],
366
+ ['google_merchant_center_exported', 'true'],
366
367
  ['group_buy_only', 'false'],
367
368
  ['in_domain', '2'],
368
369
  ['in_domain_name', 'example.com'],
@@ -110,6 +110,21 @@ export class Product extends Entity {
110
110
  @Product.property({type: String})
111
111
  public aiContext?: string;
112
112
 
113
+ @Product.property({type: String})
114
+ public googleMerchantCenterId?: string;
115
+
116
+ @Product.property({type: String})
117
+ public googleMerchantCenterTitle?: string;
118
+
119
+ @Product.property({type: String})
120
+ public googleMerchantCenterDescription?: string;
121
+
122
+ @Product.property({type: String})
123
+ public googleMerchantCenterProductUrl?: string;
124
+
125
+ @Product.property({type: String})
126
+ public googleMerchantCenterPrice?: number;
127
+
113
128
  @Product.property({type: String})
114
129
  public shopifyProductId?: string | null;
115
130
 
package/src/entity.ts CHANGED
@@ -96,6 +96,7 @@ interface ListOptions {
96
96
  excludeComponents?: string[];
97
97
  excludeDomains?: number[];
98
98
  excludeJobs?: number[];
99
+ googleMerchantCenterExported?: boolean;
99
100
  groupBuyForJobId?: number;
100
101
  groupBuyOnly?: boolean;
101
102
  inbound?: boolean;
@@ -616,6 +617,10 @@ export class Entity {
616
617
  fetchOptions.query.push(['group_buy_for_job_id',
617
618
  options.groupBuyForJobId.toString()]);
618
619
  }
620
+ if (options.googleMerchantCenterExported !== undefined) {
621
+ fetchOptions.query.push(['google_merchant_center_exported',
622
+ options.googleMerchantCenterExported.toString()]);
623
+ }
619
624
  if (options.section !== undefined) {
620
625
  fetchOptions.query.push(['section', options.section.toString()]);
621
626
  }