@leaddreamer/inventorylogic 0.0.3-beta.90 → 0.0.3-beta.91
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.
- package/README.md +10 -10
- package/business/Product/googleMerchantAPI.js +49 -49
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1843,8 +1843,8 @@ Typedefs, constants, support functions and database operations related to Produc
|
|
|
1843
1843
|
|
|
1844
1844
|
* [GoogleProduct](#module_GoogleProduct)
|
|
1845
1845
|
* _static_
|
|
1846
|
-
* [.ggProductMap](#module_GoogleProduct.ggProductMap) : <code>GoogleProductAPI</code>
|
|
1847
1846
|
* [.ggProductAttributeMap](#module_GoogleProduct.ggProductAttributeMap) : <code>GoogleProductAttributes</code>
|
|
1847
|
+
* [.ggProductMap](#module_GoogleProduct.ggProductMap) : <code>GoogleProductAPI</code>
|
|
1848
1848
|
* [.ggProductInputMap](#module_GoogleProduct.ggProductInputMap) : <code>GoogleProductAPI</code>
|
|
1849
1849
|
* [.ggProductFeedToProducts(feedJSON)](#module_GoogleProduct.ggProductFeedToProducts) ⇒ <code>Array.Products</code>
|
|
1850
1850
|
* [.productsToGgProductFeed(productsArray)](#module_GoogleProduct.productsToGgProductFeed)
|
|
@@ -1878,15 +1878,15 @@ Typedefs, constants, support functions and database operations related to Produc
|
|
|
1878
1878
|
* [~CustomAttribute](#module_GoogleProduct..CustomAttribute) : <code>object</code>
|
|
1879
1879
|
* [~GoogleProductAPI](#module_GoogleProduct..GoogleProductAPI) : <code>object</code>
|
|
1880
1880
|
|
|
1881
|
+
<a name="module_GoogleProduct.ggProductAttributeMap"></a>
|
|
1882
|
+
|
|
1883
|
+
### GoogleProduct.ggProductAttributeMap : <code>GoogleProductAttributes</code>
|
|
1884
|
+
**Kind**: static constant of [<code>GoogleProduct</code>](#module_GoogleProduct)
|
|
1881
1885
|
<a name="module_GoogleProduct.ggProductMap"></a>
|
|
1882
1886
|
|
|
1883
1887
|
### GoogleProduct.ggProductMap : <code>GoogleProductAPI</code>
|
|
1884
1888
|
A Map between GoogleProductAPI and Pricing Internal API
|
|
1885
1889
|
|
|
1886
|
-
**Kind**: static constant of [<code>GoogleProduct</code>](#module_GoogleProduct)
|
|
1887
|
-
<a name="module_GoogleProduct.ggProductAttributeMap"></a>
|
|
1888
|
-
|
|
1889
|
-
### GoogleProduct.ggProductAttributeMap : <code>GoogleProductAttributes</code>
|
|
1890
1890
|
**Kind**: static constant of [<code>GoogleProduct</code>](#module_GoogleProduct)
|
|
1891
1891
|
<a name="module_GoogleProduct.ggProductInputMap"></a>
|
|
1892
1892
|
|
|
@@ -2346,8 +2346,8 @@ Typedefs, constants, support functions and database operations related to Produc
|
|
|
2346
2346
|
|
|
2347
2347
|
* [GoogleProduct](#module_GoogleProduct)
|
|
2348
2348
|
* _static_
|
|
2349
|
-
* [.ggProductMap](#module_GoogleProduct.ggProductMap) : <code>GoogleProductAPI</code>
|
|
2350
2349
|
* [.ggProductAttributeMap](#module_GoogleProduct.ggProductAttributeMap) : <code>GoogleProductAttributes</code>
|
|
2350
|
+
* [.ggProductMap](#module_GoogleProduct.ggProductMap) : <code>GoogleProductAPI</code>
|
|
2351
2351
|
* [.ggProductInputMap](#module_GoogleProduct.ggProductInputMap) : <code>GoogleProductAPI</code>
|
|
2352
2352
|
* [.ggProductFeedToProducts(feedJSON)](#module_GoogleProduct.ggProductFeedToProducts) ⇒ <code>Array.Products</code>
|
|
2353
2353
|
* [.productsToGgProductFeed(productsArray)](#module_GoogleProduct.productsToGgProductFeed)
|
|
@@ -2381,15 +2381,15 @@ Typedefs, constants, support functions and database operations related to Produc
|
|
|
2381
2381
|
* [~CustomAttribute](#module_GoogleProduct..CustomAttribute) : <code>object</code>
|
|
2382
2382
|
* [~GoogleProductAPI](#module_GoogleProduct..GoogleProductAPI) : <code>object</code>
|
|
2383
2383
|
|
|
2384
|
+
<a name="module_GoogleProduct.ggProductAttributeMap"></a>
|
|
2385
|
+
|
|
2386
|
+
### GoogleProduct.ggProductAttributeMap : <code>GoogleProductAttributes</code>
|
|
2387
|
+
**Kind**: static constant of [<code>GoogleProduct</code>](#module_GoogleProduct)
|
|
2384
2388
|
<a name="module_GoogleProduct.ggProductMap"></a>
|
|
2385
2389
|
|
|
2386
2390
|
### GoogleProduct.ggProductMap : <code>GoogleProductAPI</code>
|
|
2387
2391
|
A Map between GoogleProductAPI and Pricing Internal API
|
|
2388
2392
|
|
|
2389
|
-
**Kind**: static constant of [<code>GoogleProduct</code>](#module_GoogleProduct)
|
|
2390
|
-
<a name="module_GoogleProduct.ggProductAttributeMap"></a>
|
|
2391
|
-
|
|
2392
|
-
### GoogleProduct.ggProductAttributeMap : <code>GoogleProductAttributes</code>
|
|
2393
2393
|
**Kind**: static constant of [<code>GoogleProduct</code>](#module_GoogleProduct)
|
|
2394
2394
|
<a name="module_GoogleProduct.ggProductInputMap"></a>
|
|
2395
2395
|
|
|
@@ -243,55 +243,6 @@
|
|
|
243
243
|
* If the operation is prevented, the aborted exception will be thrown.
|
|
244
244
|
*/
|
|
245
245
|
|
|
246
|
-
/**
|
|
247
|
-
* A Map between GoogleProductAPI and Pricing Internal API
|
|
248
|
-
* @type {GoogleProductAPI}
|
|
249
|
-
* @const
|
|
250
|
-
*/
|
|
251
|
-
export const ggProductMap = {
|
|
252
|
-
//all assume variants.index. prefix
|
|
253
|
-
"name": {
|
|
254
|
-
target: "variants.index.platformData.googleData.name",
|
|
255
|
-
//formula: "accounts/{$account}/productInputs/{$productinput}",
|
|
256
|
-
//productInput = '${contentLanguage}~${feedLabel}~${sku}'
|
|
257
|
-
},
|
|
258
|
-
"base64EncodedName": {
|
|
259
|
-
target: "variants.index.platformData.googleData.base64EncodedName"
|
|
260
|
-
},
|
|
261
|
-
"product": {
|
|
262
|
-
target: "variants.index.platformData.googleData.product"
|
|
263
|
-
},
|
|
264
|
-
"base64EncodedProduct": {
|
|
265
|
-
target: "variants.index.platformData.googleData.base64EncodedProduct"
|
|
266
|
-
},
|
|
267
|
-
"legacyLocal": {
|
|
268
|
-
target: "variants.index.platformData.googleData.legacyLocal"
|
|
269
|
-
},
|
|
270
|
-
"offerId": {
|
|
271
|
-
//immutable. Used to create.
|
|
272
|
-
target: "variants.index.sku",
|
|
273
|
-
},
|
|
274
|
-
"contentLanguage": {
|
|
275
|
-
//immutable. Used to create.
|
|
276
|
-
target: "variants.index.platformData.googleData.contentLanguage",
|
|
277
|
-
},
|
|
278
|
-
"feedLabel": {
|
|
279
|
-
//immutable. Used to create.
|
|
280
|
-
target: "variants.index.platformData.googleData.feedLabel",
|
|
281
|
-
},
|
|
282
|
-
"productAttributes": {
|
|
283
|
-
target: "",
|
|
284
|
-
formatter: ggProductAttributeMap,
|
|
285
|
-
},
|
|
286
|
-
"customAttributes": {
|
|
287
|
-
target: "variants.index.platformData.googleData.customAttributes",
|
|
288
|
-
formatter: ggcustomAttributes,
|
|
289
|
-
},
|
|
290
|
-
"versionNumber": {
|
|
291
|
-
target: "variants.index.versionNumber",
|
|
292
|
-
},
|
|
293
|
-
}
|
|
294
|
-
|
|
295
246
|
/**
|
|
296
247
|
* @type {GoogleProductAttributes}
|
|
297
248
|
*/
|
|
@@ -386,6 +337,55 @@ export const ggProductAttributeMap = {
|
|
|
386
337
|
//shipping_label: null,
|
|
387
338
|
};
|
|
388
339
|
|
|
340
|
+
/**
|
|
341
|
+
* A Map between GoogleProductAPI and Pricing Internal API
|
|
342
|
+
* @type {GoogleProductAPI}
|
|
343
|
+
* @const
|
|
344
|
+
*/
|
|
345
|
+
export const ggProductMap = {
|
|
346
|
+
//all assume variants.index. prefix
|
|
347
|
+
"name": {
|
|
348
|
+
target: "variants.index.platformData.googleData.name",
|
|
349
|
+
//formula: "accounts/{$account}/productInputs/{$productinput}",
|
|
350
|
+
//productInput = '${contentLanguage}~${feedLabel}~${sku}'
|
|
351
|
+
},
|
|
352
|
+
"base64EncodedName": {
|
|
353
|
+
target: "variants.index.platformData.googleData.base64EncodedName"
|
|
354
|
+
},
|
|
355
|
+
"product": {
|
|
356
|
+
target: "variants.index.platformData.googleData.product"
|
|
357
|
+
},
|
|
358
|
+
"base64EncodedProduct": {
|
|
359
|
+
target: "variants.index.platformData.googleData.base64EncodedProduct"
|
|
360
|
+
},
|
|
361
|
+
"legacyLocal": {
|
|
362
|
+
target: "variants.index.platformData.googleData.legacyLocal"
|
|
363
|
+
},
|
|
364
|
+
"offerId": {
|
|
365
|
+
//immutable. Used to create.
|
|
366
|
+
target: "variants.index.sku",
|
|
367
|
+
},
|
|
368
|
+
"contentLanguage": {
|
|
369
|
+
//immutable. Used to create.
|
|
370
|
+
target: "variants.index.platformData.googleData.contentLanguage",
|
|
371
|
+
},
|
|
372
|
+
"feedLabel": {
|
|
373
|
+
//immutable. Used to create.
|
|
374
|
+
target: "variants.index.platformData.googleData.feedLabel",
|
|
375
|
+
},
|
|
376
|
+
"productAttributes": {
|
|
377
|
+
target: "",
|
|
378
|
+
formatter: ggProductAttributeMap,
|
|
379
|
+
},
|
|
380
|
+
"customAttributes": {
|
|
381
|
+
target: "variants.index.platformData.googleData.customAttributes",
|
|
382
|
+
formatter: ggcustomAttributes,
|
|
383
|
+
},
|
|
384
|
+
"versionNumber": {
|
|
385
|
+
target: "variants.index.versionNumber",
|
|
386
|
+
},
|
|
387
|
+
}
|
|
388
|
+
|
|
389
389
|
/**
|
|
390
390
|
* Map between GoogleProductAPI and internal Product Data
|
|
391
391
|
* Note that when gg >> internal, index is *discovered* by searching
|