@leaddreamer/inventorylogic 0.0.3-beta.55 → 0.0.3-beta.57
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 +82 -23
- package/business/Product/GoogleMarchantMarkup.js +1 -0
- package/business/Product/GoogleMerchantAPI.js +24 -27
- package/business/Product/Squarespace.js +12 -12
- package/business/Product/index.js +62 -5
- package/dist/InventoryLogic.28d9cb10.js +2 -0
- package/dist/InventoryLogic.636fbde2.js +2 -0
- package/dist/InventoryLogic.6d5e9bcf.js +2 -0
- package/dist/InventoryLogic.9878bc32.js +2 -0
- package/dist/InventoryLogic.b5934d14.js +2 -0
- package/dist/InventoryLogic.e295e814.js +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2654,16 +2654,16 @@ Typedefs, constants, support functions and database operations related to Produc
|
|
|
2654
2654
|
* [~ProductWeight](#module_SquarespaceProduct..ProductWeight) : <code>object</code>
|
|
2655
2655
|
* [~ProductMeasurements](#module_SquarespaceProduct..ProductMeasurements) : <code>object</code>
|
|
2656
2656
|
* [~ProductStock](#module_SquarespaceProduct..ProductStock) : <code>object</code>
|
|
2657
|
-
* [~PhysicalProductVariant](#module_SquarespaceProduct..PhysicalProductVariant) : <code>object</code>
|
|
2658
2657
|
* [~MetaData](#module_SquarespaceProduct..MetaData) : <code>object</code>
|
|
2659
2658
|
* [~ProductTypeV2Enum](#module_SquarespaceProduct..ProductTypeV2Enum) : <code>"PHYSICAL"</code> \| <code>"SERVICE"</code> \| <code>"GIFT\_CARD"</code> \| <code>"DIGITAL"</code>
|
|
2659
|
+
* [~PhysicalProductVariant](#module_SquarespaceProduct..PhysicalProductVariant) : <code>object</code>
|
|
2660
2660
|
* [~PhysicalProduct](#module_SquarespaceProduct..PhysicalProduct) : <code>object</code>
|
|
2661
2661
|
|
|
2662
2662
|
<a name="module_SquarespaceProduct..PhysicalProductDefault"></a>
|
|
2663
2663
|
|
|
2664
2664
|
### SquarespaceProduct~PhysicalProductDefault : <code>PhysicalProduct</code>
|
|
2665
2665
|
**Kind**: inner constant of [<code>SquarespaceProduct</code>](#module_SquarespaceProduct)
|
|
2666
|
-
**Default**: <code>{"created":null,"id":null,"modified":null,"storePageId":"","type":"
|
|
2666
|
+
**Default**: <code>{"created":null,"id":null,"modified":null,"storePageId":"","type":"PHYSICAL","description":null,"images":"","isVisible":true,"name":"","seoOptions":"","tags":"","url":"","urlSlug":"","variantAttributes":"","variants":""}</code>
|
|
2667
2667
|
**Read only**: true
|
|
2668
2668
|
<a name="module_SquarespaceProduct..PhysicalProductMap"></a>
|
|
2669
2669
|
|
|
@@ -2833,6 +2833,23 @@ Available stock for the variant. Present for PHYSICAL products only.
|
|
|
2833
2833
|
| quantity | <code>integer</code> |
|
|
2834
2834
|
| unlimited | <code>boolean</code> |
|
|
2835
2835
|
|
|
2836
|
+
<a name="module_SquarespaceProduct..MetaData"></a>
|
|
2837
|
+
|
|
2838
|
+
### SquarespaceProduct~MetaData : <code>object</code>
|
|
2839
|
+
Meta Information for SEO
|
|
2840
|
+
|
|
2841
|
+
**Kind**: inner typedef of [<code>SquarespaceProduct</code>](#module_SquarespaceProduct)
|
|
2842
|
+
**Properties**
|
|
2843
|
+
|
|
2844
|
+
| Name | Type |
|
|
2845
|
+
| --- | --- |
|
|
2846
|
+
| title | <code>string</code> |
|
|
2847
|
+
| description | <code>string</code> |
|
|
2848
|
+
|
|
2849
|
+
<a name="module_SquarespaceProduct..ProductTypeV2Enum"></a>
|
|
2850
|
+
|
|
2851
|
+
### SquarespaceProduct~ProductTypeV2Enum : <code>"PHYSICAL"</code> \| <code>"SERVICE"</code> \| <code>"GIFT\_CARD"</code> \| <code>"DIGITAL"</code>
|
|
2852
|
+
**Kind**: inner typedef of [<code>SquarespaceProduct</code>](#module_SquarespaceProduct)
|
|
2836
2853
|
<a name="module_SquarespaceProduct..PhysicalProductVariant"></a>
|
|
2837
2854
|
|
|
2838
2855
|
### SquarespaceProduct~PhysicalProductVariant : <code>object</code>
|
|
@@ -2852,23 +2869,6 @@ variant record (including inventory and pricing)
|
|
|
2852
2869
|
| sku | <code>string</code> | |
|
|
2853
2870
|
| stock | <code>ProductStock</code> | |
|
|
2854
2871
|
|
|
2855
|
-
<a name="module_SquarespaceProduct..MetaData"></a>
|
|
2856
|
-
|
|
2857
|
-
### SquarespaceProduct~MetaData : <code>object</code>
|
|
2858
|
-
Meta Information for SEO
|
|
2859
|
-
|
|
2860
|
-
**Kind**: inner typedef of [<code>SquarespaceProduct</code>](#module_SquarespaceProduct)
|
|
2861
|
-
**Properties**
|
|
2862
|
-
|
|
2863
|
-
| Name | Type |
|
|
2864
|
-
| --- | --- |
|
|
2865
|
-
| title | <code>string</code> |
|
|
2866
|
-
| description | <code>string</code> |
|
|
2867
|
-
|
|
2868
|
-
<a name="module_SquarespaceProduct..ProductTypeV2Enum"></a>
|
|
2869
|
-
|
|
2870
|
-
### SquarespaceProduct~ProductTypeV2Enum : <code>"PHYSICAL"</code> \| <code>"SERVICE"</code> \| <code>"GIFT\_CARD"</code> \| <code>"DIGITAL"</code>
|
|
2871
|
-
**Kind**: inner typedef of [<code>SquarespaceProduct</code>](#module_SquarespaceProduct)
|
|
2872
2872
|
<a name="module_SquarespaceProduct..PhysicalProduct"></a>
|
|
2873
2873
|
|
|
2874
2874
|
### SquarespaceProduct~PhysicalProduct : <code>object</code>
|
|
@@ -2923,6 +2923,7 @@ Typedefs, constants, support functions and database operations related to Produc
|
|
|
2923
2923
|
* [~PriceObject](#module_Product..PriceObject) : <code>object</code>
|
|
2924
2924
|
* [~ProductWeight](#module_Product..ProductWeight) : <code>object</code>
|
|
2925
2925
|
* [~ProductMeasurements](#module_Product..ProductMeasurements) : <code>object</code>
|
|
2926
|
+
* [~QuantitativeValue](#module_Product..QuantitativeValue) : <code>object</code>
|
|
2926
2927
|
* [~SizeSpecification](#module_Product..SizeSpecification) : <code>object</code>
|
|
2927
2928
|
* [~ProductStock](#module_Product..ProductStock) : <code>object</code>
|
|
2928
2929
|
* [~MetaData](#module_Product..MetaData) : <code>object</code>
|
|
@@ -2932,6 +2933,9 @@ Typedefs, constants, support functions and database operations related to Produc
|
|
|
2932
2933
|
* [~SquarespaceDataObject](#module_Product..SquarespaceDataObject) : <code>object</code>
|
|
2933
2934
|
* [~PlatformData](#module_Product..PlatformData) : <code>object</code>
|
|
2934
2935
|
* [~AttributeValueObject](#module_Product..AttributeValueObject) : <code>object</code>
|
|
2936
|
+
* [~VideoImage](#module_Product..VideoImage) : <code>object</code>
|
|
2937
|
+
* [~VirtualModel](#module_Product..VirtualModel) : <code>object</code>
|
|
2938
|
+
* [~MediaObject](#module_Product..MediaObject) : <code>object</code>
|
|
2935
2939
|
* [~PhysicalProductVariant](#module_Product..PhysicalProductVariant) : <code>object</code>
|
|
2936
2940
|
* [~Product](#module_Product..Product) : <code>object</code>
|
|
2937
2941
|
|
|
@@ -3157,6 +3161,20 @@ Measurements of the variant when it's shipped. Present for PHYSICAL products onl
|
|
|
3157
3161
|
| dimensions | <code>ProductDimensions</code> |
|
|
3158
3162
|
| weight | <code>ProductWeight</code> |
|
|
3159
3163
|
|
|
3164
|
+
<a name="module_Product..QuantitativeValue"></a>
|
|
3165
|
+
|
|
3166
|
+
### Product~QuantitativeValue : <code>object</code>
|
|
3167
|
+
**Kind**: inner typedef of [<code>Product</code>](#module_Product)
|
|
3168
|
+
**Properties**
|
|
3169
|
+
|
|
3170
|
+
| Name | Type | Description |
|
|
3171
|
+
| --- | --- | --- |
|
|
3172
|
+
| value | <code>Boolean</code> \| <code>Number</code> \| <code>text</code> \| <code>StructuredValue</code> | The value of a QuantitativeValue (including Observation) or property value node. * For QuantitativeValue and MonetaryAmount, the recommended type for values is 'Number'. * For PropertyValue, it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'. * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols. * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. |
|
|
3173
|
+
| maxValue | <code>number</code> | The upper value of some characteristic or property. |
|
|
3174
|
+
| minValue | <code>number</code> | The lower value of some characteristic or property. |
|
|
3175
|
+
| unitText | <code>Text</code> | A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for unitCode |
|
|
3176
|
+
| unitCode | <code>Text</code> \| <code>URL</code> | The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon |
|
|
3177
|
+
|
|
3160
3178
|
<a name="module_Product..SizeSpecification"></a>
|
|
3161
3179
|
|
|
3162
3180
|
### Product~SizeSpecification : <code>object</code>
|
|
@@ -3268,9 +3286,48 @@ List of Platform Specific Data
|
|
|
3268
3286
|
| colors | <code>Array.Text</code> |
|
|
3269
3287
|
| materials | <code>Array.Text</code> |
|
|
3270
3288
|
| patterns | <code>Array.Text</code> |
|
|
3289
|
+
| custom_label_0 | <code>string</code> |
|
|
3290
|
+
| custom_label_1 | <code>string</code> |
|
|
3291
|
+
| custom_label_2 | <code>string</code> |
|
|
3292
|
+
| custom_label_3 | <code>string</code> |
|
|
3293
|
+
| custom_label_4 | <code>string</code> |
|
|
3271
3294
|
| createdOn | <code>Date</code> |
|
|
3272
3295
|
| modifiedOn | <code>Date</code> |
|
|
3273
3296
|
|
|
3297
|
+
<a name="module_Product..VideoImage"></a>
|
|
3298
|
+
|
|
3299
|
+
### Product~VideoImage : <code>object</code>
|
|
3300
|
+
**Kind**: inner typedef of [<code>Product</code>](#module_Product)
|
|
3301
|
+
**Properties**
|
|
3302
|
+
|
|
3303
|
+
| Name | Type |
|
|
3304
|
+
| --- | --- |
|
|
3305
|
+
| video_link | <code>URL</code> |
|
|
3306
|
+
|
|
3307
|
+
<a name="module_Product..VirtualModel"></a>
|
|
3308
|
+
|
|
3309
|
+
### Product~VirtualModel : <code>object</code>
|
|
3310
|
+
**Kind**: inner typedef of [<code>Product</code>](#module_Product)
|
|
3311
|
+
**Properties**
|
|
3312
|
+
|
|
3313
|
+
| Name | Type |
|
|
3314
|
+
| --- | --- |
|
|
3315
|
+
| virtual_model_link | <code>URL</code> |
|
|
3316
|
+
|
|
3317
|
+
<a name="module_Product..MediaObject"></a>
|
|
3318
|
+
|
|
3319
|
+
### Product~MediaObject : <code>object</code>
|
|
3320
|
+
Media Related Data
|
|
3321
|
+
|
|
3322
|
+
**Kind**: inner typedef of [<code>Product</code>](#module_Product)
|
|
3323
|
+
**Properties**
|
|
3324
|
+
|
|
3325
|
+
| Name | Type |
|
|
3326
|
+
| --- | --- |
|
|
3327
|
+
| images | <code>Array:ProductImage</code> |
|
|
3328
|
+
| video_image | <code>VideoImage</code> |
|
|
3329
|
+
| virtual_model | <code>VirtualModel</code> |
|
|
3330
|
+
|
|
3274
3331
|
<a name="module_Product..PhysicalProductVariant"></a>
|
|
3275
3332
|
|
|
3276
3333
|
### Product~PhysicalProductVariant : <code>object</code>
|
|
@@ -3291,7 +3348,9 @@ variant record (including inventory and pricing)
|
|
|
3291
3348
|
| gtin | <code>string</code> | Global Trade Item Number |
|
|
3292
3349
|
| mpn | <code>string</code> | manufacturer part number |
|
|
3293
3350
|
| productMeasurements | <code>ProductMeasurements</code> | |
|
|
3294
|
-
|
|
|
3351
|
+
| sizeSpecification | <code>SizeSpecification</code> | |
|
|
3352
|
+
| availability | <code>"in\_stock"</code> \| <code>"out\_of\_stock"</code> \| <code>"preorder"</code> \| <code>"backorder"</code> | Accurately submit the product's availability and match the availability from your landing page, checkout pages, and structured data (for example, “in_stock” or “out_of_stock” in your Schema.org markup). If an item is out of stock, the price must still be clearly visible on the landing page. Provide the availability date [availability_date] attribute if you submit preorder [preorder] or backorder [backorder] as the availability value. |
|
|
3353
|
+
| availability_date | <code>string</code> \| <code>ISO8601</code> | Use this attribute if your product's availability is set to preorder. Provide a value up to one year in the future. The availability date should also be added to the product’s landing page and be clear to your customers (for example, “May 6, 2023”). If an exact date can’t be provided, you can use an estimated date (for example, “May 2023”). |
|
|
3295
3354
|
|
|
3296
3355
|
<a name="module_Product..Product"></a>
|
|
3297
3356
|
|
|
@@ -3310,16 +3369,16 @@ a product record
|
|
|
3310
3369
|
| squarespaceData | <code>SquarespaceDataObject</code> | |
|
|
3311
3370
|
| storePageId | <code>Text</code> | |
|
|
3312
3371
|
| name | <code>string</code> | name for the Product |
|
|
3372
|
+
| short_name | <code>string</code> | name for the Product |
|
|
3313
3373
|
| description | <code>string</code> | Basic description of the product |
|
|
3374
|
+
| short_description | <code>string</code> | |
|
|
3314
3375
|
| google_product_category | <code>string</code> | |
|
|
3315
3376
|
| product_type | <code>string</code> | "casual google_product_category" |
|
|
3316
3377
|
| brand | <code>Text</code> \| <code>BrandObject</code> | The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business user. |
|
|
3317
3378
|
| demographics | <code>Demographics</code> | |
|
|
3318
3379
|
| attributes | <code>AttributeValueObject</code> | array of attribute/value pairs for a product |
|
|
3319
3380
|
| recipe | <code>Recipe\_Data</code> | pricing and fabrication data |
|
|
3320
|
-
|
|
|
3321
|
-
| video_image | <code>VideoImage</code> | |
|
|
3322
|
-
| virtual_model | <code>VirtualModel</code> | |
|
|
3381
|
+
| mediaObject | <code>MediaObject</code> | |
|
|
3323
3382
|
| mobileInfo | <code>MobileInfo</code> | |
|
|
3324
3383
|
| isVisible | <code>boolean</code> | |
|
|
3325
3384
|
| seoOptions | <code>MetaData</code> | |
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
* The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon
|
|
96
96
|
*
|
|
97
97
|
*/
|
|
98
|
+
|
|
98
99
|
/**
|
|
99
100
|
* Size Grouping options
|
|
100
101
|
* @typedef {"Big"|"Boys"|"ExtraShort"|"ExtraTall"|"Girls"|"Husky"|"Infants"|"Juniors"|"Maternity"|"Mens"|"Misses"|"Petite"|"Plus"|"Regular"|"Short"|"Tall"|"Womens"} SizeGroupEnumeration
|
|
@@ -160,9 +160,9 @@ export const GoogleAPIProductMap = {
|
|
|
160
160
|
link: "URL",
|
|
161
161
|
//image_link and image_additional_links need programmatic process
|
|
162
162
|
image_link: "variants[index].image.URL",
|
|
163
|
-
additional_image_link: "images[all]",
|
|
164
|
-
video_link:
|
|
165
|
-
virtual_model_link:
|
|
163
|
+
additional_image_link: "mediaobject.images[all]",
|
|
164
|
+
video_link: "mediaobject.video_image.video_link",
|
|
165
|
+
virtual_model_link: "mediaobject.virtual_model.virtual_model_link",
|
|
166
166
|
mobile_link: null,
|
|
167
167
|
//availability needs to be programmatic
|
|
168
168
|
availability: null, //"in_stock" | "out_of_stock" | "preorder" | "backorder",
|
|
@@ -173,7 +173,7 @@ export const GoogleAPIProductMap = {
|
|
|
173
173
|
sale_price: "variants[index].pricing.saleprice.value| |variants[index].pricing.saleprice.currencyDescription.displayName",
|
|
174
174
|
sale_price_effective_date: "variants[index].pricing.effectiveDate.",
|
|
175
175
|
google_product_category: "google_product_category",
|
|
176
|
-
product_type:
|
|
176
|
+
product_type: "product_type",
|
|
177
177
|
brand: "brand.name",
|
|
178
178
|
gtin: "variants[index].gtin",
|
|
179
179
|
mpn: "variants[index].gtin",
|
|
@@ -187,34 +187,31 @@ export const GoogleAPIProductMap = {
|
|
|
187
187
|
product_length: "variants[index].productMeasurements.dimensions.length&' '&variants[index].productMeasurements.dimensions.unit",
|
|
188
188
|
product_width: "variants[index].productMeasurements.dimensions.width&' '&variants[index].productMeasurements.dimensions.unit",
|
|
189
189
|
product_height: "variants[index].productMeasurements.dimensions.height&' '&variants[index].productMeasurements.dimensions.unit",
|
|
190
|
-
product_highlight:
|
|
190
|
+
product_highlight: "short_description",
|
|
191
191
|
product_weight: "variants[index].productMeasurements.weight.value&' '&variants[index].productMeasurements.weight.unit",
|
|
192
|
-
question_and_answer: [
|
|
192
|
+
/*question_and_answer: [
|
|
193
193
|
{
|
|
194
194
|
question: Text,
|
|
195
195
|
answer: Text,
|
|
196
196
|
},
|
|
197
|
-
]
|
|
198
|
-
size:
|
|
199
|
-
size_type: "
|
|
200
|
-
size_system: "
|
|
201
|
-
variant_option: [
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
shipping_width: Text | null,
|
|
216
|
-
shipping_height: Text | null,
|
|
217
|
-
shipping_label: Text | null,
|
|
197
|
+
],*/
|
|
198
|
+
size: "variants[index].sizeSpecification.hasMeasurement.value",
|
|
199
|
+
size_type: "variants[index].sizeSpecification.sizeGroup",
|
|
200
|
+
size_system: "variants[index].sizeSpecification.sizeSystem",
|
|
201
|
+
variant_option: "variants[index].sizeSpecification.attributes",
|
|
202
|
+
ads_redirect: null,
|
|
203
|
+
custom_label_0: null,
|
|
204
|
+
custom_label_1: null,
|
|
205
|
+
custom_label_2: null,
|
|
206
|
+
custom_label_3: null,
|
|
207
|
+
custom_label_4: null,
|
|
208
|
+
promotion_id: null,
|
|
209
|
+
lifestyle_image_link: null,
|
|
210
|
+
short_title: "short_name",
|
|
211
|
+
shipping_length: "variants[index].shippingMeasurements.dimensions.length",
|
|
212
|
+
shipping_width: "variants[index].shippingMeasurements.dimensions.width",
|
|
213
|
+
shipping_height: "variants[index].shippingMeasurements.dimensions.height",
|
|
214
|
+
shipping_label: null,
|
|
218
215
|
}
|
|
219
216
|
|
|
220
217
|
/**
|
|
@@ -98,6 +98,17 @@ import { PRODUCT, MARKUPS, ISBN_LENGTH } from "../boilerplate/index.js";
|
|
|
98
98
|
*/
|
|
99
99
|
|
|
100
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Meta Information for SEO
|
|
103
|
+
* @typedef {object} MetaData
|
|
104
|
+
* @property {string} title
|
|
105
|
+
* @property {string} description
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @typedef {"PHYSICAL" | "SERVICE" | "GIFT_CARD" | "DIGITAL"} ProductTypeV2Enum
|
|
110
|
+
*/
|
|
111
|
+
|
|
101
112
|
/**
|
|
102
113
|
* variant record (including inventory and pricing)
|
|
103
114
|
* @typedef {object} PhysicalProductVariant
|
|
@@ -111,17 +122,6 @@ import { PRODUCT, MARKUPS, ISBN_LENGTH } from "../boilerplate/index.js";
|
|
|
111
122
|
* @property {ProductStock} stock
|
|
112
123
|
*/
|
|
113
124
|
|
|
114
|
-
/**
|
|
115
|
-
* Meta Information for SEO
|
|
116
|
-
* @typedef {object} MetaData
|
|
117
|
-
* @property {string} title
|
|
118
|
-
* @property {string} description
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @typedef {"PHYSICAL" | "SERVICE" | "GIFT_CARD" | "DIGITAL"} ProductTypeV2Enum
|
|
123
|
-
*/
|
|
124
|
-
|
|
125
125
|
/**
|
|
126
126
|
* a Square product record
|
|
127
127
|
* @typedef {object} PhysicalProduct
|
|
@@ -153,7 +153,7 @@ const PhysicalProductDefault = {
|
|
|
153
153
|
id: null,
|
|
154
154
|
modified: null,
|
|
155
155
|
storePageId: "",
|
|
156
|
-
type: PHYSICAL,
|
|
156
|
+
type: "PHYSICAL",
|
|
157
157
|
description: null,
|
|
158
158
|
images: [],
|
|
159
159
|
isVisible: true,
|
|
@@ -32,6 +32,10 @@ import { typedRecordFromChild } from "../Utilities/index.js"
|
|
|
32
32
|
* @property {string} value value for the particular attribute
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* @typedef
|
|
37
|
+
*/
|
|
38
|
+
|
|
35
39
|
/**
|
|
36
40
|
* Image Descriptor
|
|
37
41
|
* @typedef {object} ProductImage
|
|
@@ -109,6 +113,22 @@ import { typedRecordFromChild } from "../Utilities/index.js"
|
|
|
109
113
|
* @property {ProductWeight} weight
|
|
110
114
|
*/
|
|
111
115
|
|
|
116
|
+
/**
|
|
117
|
+
* @typedef {object} QuantitativeValue
|
|
118
|
+
* @property {Boolean | Number | text | StructuredValue} value
|
|
119
|
+
* The value of a QuantitativeValue (including Observation) or property value node.
|
|
120
|
+
* * For QuantitativeValue and MonetaryAmount, the recommended type for values is 'Number'.
|
|
121
|
+
* * For PropertyValue, it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'.
|
|
122
|
+
* * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.
|
|
123
|
+
* * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
|
|
124
|
+
* @property {number} maxValue The upper value of some characteristic or property.
|
|
125
|
+
* @property {number} minValue The lower value of some characteristic or property.
|
|
126
|
+
* @property {?Text} unitText A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for unitCode
|
|
127
|
+
* @property {?Text | URL} unitCode
|
|
128
|
+
* The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
|
|
112
132
|
/**
|
|
113
133
|
* @typedef {object} SizeSpecification
|
|
114
134
|
* @property {Text} type "SizeSpecification"
|
|
@@ -132,7 +152,6 @@ import { typedRecordFromChild } from "../Utilities/index.js"
|
|
|
132
152
|
* @property {boolean} unlimited
|
|
133
153
|
*/
|
|
134
154
|
|
|
135
|
-
|
|
136
155
|
/**
|
|
137
156
|
* Meta Information for SEO
|
|
138
157
|
* @typedef {object} MetaData
|
|
@@ -180,10 +199,33 @@ import { typedRecordFromChild } from "../Utilities/index.js"
|
|
|
180
199
|
* @property {Array.Text} colors
|
|
181
200
|
* @property {Array.Text} materials
|
|
182
201
|
* @property {Array.Text} patterns
|
|
202
|
+
* @property {string} custom_label_0
|
|
203
|
+
* @property {string} custom_label_1
|
|
204
|
+
* @property {string} custom_label_2
|
|
205
|
+
* @property {string} custom_label_3
|
|
206
|
+
* @property {string} custom_label_4
|
|
183
207
|
* @property {Date} createdOn
|
|
184
208
|
* @property {Date} modifiedOn
|
|
185
209
|
*/
|
|
186
210
|
|
|
211
|
+
/**
|
|
212
|
+
* @typedef {object} VideoImage
|
|
213
|
+
* @property {URL} video_link
|
|
214
|
+
*/
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @typedef {object} VirtualModel
|
|
218
|
+
* @property {URL} virtual_model_link
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Media Related Data
|
|
223
|
+
* @typedef {object} MediaObject
|
|
224
|
+
* @property {Array:ProductImage} images
|
|
225
|
+
* @property {VideoImage} video_image
|
|
226
|
+
* @property {VirtualModel} virtual_model
|
|
227
|
+
*/
|
|
228
|
+
|
|
187
229
|
/**
|
|
188
230
|
* variant record (including inventory and pricing)
|
|
189
231
|
* @typedef {object} PhysicalProductVariant
|
|
@@ -197,7 +239,22 @@ import { typedRecordFromChild } from "../Utilities/index.js"
|
|
|
197
239
|
* @property {string} gtin Global Trade Item Number
|
|
198
240
|
* @property {string} mpn manufacturer part number
|
|
199
241
|
* @property {ProductMeasurements} productMeasurements
|
|
200
|
-
* @property {
|
|
242
|
+
* @property {SizeSpecification} sizeSpecification
|
|
243
|
+
* @property {"in_stock"|"out_of_stock"|"preorder"|"backorder"} availability
|
|
244
|
+
* Accurately submit the product's availability and match the availability
|
|
245
|
+
* from your landing page, checkout pages, and structured data (for
|
|
246
|
+
* example, “in_stock” or “out_of_stock” in your Schema.org markup).
|
|
247
|
+
* If an item is out of stock, the price must still be clearly visible
|
|
248
|
+
* on the landing page.
|
|
249
|
+
* Provide the availability date [availability_date] attribute if you
|
|
250
|
+
* submit preorder [preorder] or backorder [backorder] as the availability value.
|
|
251
|
+
* @property {string|ISO8601} availability_date
|
|
252
|
+
* Use this attribute if your product's availability is set to preorder.
|
|
253
|
+
* Provide a value up to one year in the future.
|
|
254
|
+
* The availability date should also be added to the product’s landing
|
|
255
|
+
* page and be clear to your customers (for example, “May 6, 2023”).
|
|
256
|
+
* If an exact date can’t be provided, you can use an estimated date
|
|
257
|
+
* (for example, “May 2023”).
|
|
201
258
|
*/
|
|
202
259
|
|
|
203
260
|
/**
|
|
@@ -210,7 +267,9 @@ import { typedRecordFromChild } from "../Utilities/index.js"
|
|
|
210
267
|
* @property {SquarespaceDataObject} squarespaceData
|
|
211
268
|
* @property {Text} storePageId
|
|
212
269
|
* @property {string} name name for the Product
|
|
270
|
+
* @property {string} short_name name for the Product
|
|
213
271
|
* @property {string} description Basic description of the product
|
|
272
|
+
* @property {string} short_description
|
|
214
273
|
* @property {string} google_product_category
|
|
215
274
|
* @property {?string} product_type "casual google_product_category"
|
|
216
275
|
* @property {Text|BrandObject} brand
|
|
@@ -218,9 +277,7 @@ import { typedRecordFromChild } from "../Utilities/index.js"
|
|
|
218
277
|
* @property {Demographics} demographics
|
|
219
278
|
* @property {AttributeValueObject} attributes array of attribute/value pairs for a product
|
|
220
279
|
* @property {Recipe_Data} recipe pricing and fabrication data
|
|
221
|
-
* @property {
|
|
222
|
-
* @property {VideoImage} video_image
|
|
223
|
-
* @property {VirtualModel} virtual_model
|
|
280
|
+
* @property {MediaObject} mediaObject
|
|
224
281
|
* @property {MobileInfo} mobileInfo
|
|
225
282
|
* @property {boolean} isVisible
|
|
226
283
|
* @property {MetaData} seoOptions
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function $parcel$exportWildcard(e,r){return Object.keys(r).forEach(function(c){"default"===c||"__esModule"===c||Object.prototype.hasOwnProperty.call(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:function(){return r[c]}})}),e}require("./InventoryLogic.f716bebc.js"),require("./InventoryLogic.87addb57.js"),require("./InventoryLogic.f8d080e8.js"),require("./InventoryLogic.9658c8e7.js"),require("./InventoryLogic.b5934d14.js"),require("./InventoryLogic.20d9efd7.js"),require("./InventoryLogic.b49f09b1.js"),require("./InventoryLogic.4e7ced22.js"),require("./InventoryLogic.1e519cb0.js"),require("./InventoryLogic.74baf986.js"),require("./InventoryLogic.2468e70a.js"),require("./InventoryLogic.e0dc6c34.js"),require("./InventoryLogic.30e7c3e7.js");var $parcel$global=globalThis,$parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequire3c55;null==parcelRequire&&((parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var r=$parcel$inits[e];delete $parcel$inits[e];var c={id:e,exports:{}};return $parcel$modules[e]=c,r.call(c.exports,c,c.exports),c.exports}var l=Error("Cannot find module '"+e+"'");throw l.code="MODULE_NOT_FOUND",l}).register=function(e,r){$parcel$inits[e]=r},$parcel$global.parcelRequire3c55=parcelRequire);var parcelRegister=parcelRequire.register,$fjZig=parcelRequire("fjZig"),$cFg1d=parcelRequire("cFg1d"),$9Lshm=parcelRequire("9Lshm"),$4wblz=parcelRequire("4wblz"),$5nIdj=parcelRequire("5nIdj"),$goJkr=parcelRequire("goJkr"),$40TGC=parcelRequire("40TGC"),$gcNAj=parcelRequire("gcNAj"),$9QUJ4=parcelRequire("9QUJ4"),$8DeQu=parcelRequire("8DeQu"),$56KtY=parcelRequire("56KtY"),$2QvMT=parcelRequire("2QvMT"),$19KWm=parcelRequire("19KWm");$parcel$exportWildcard(module.exports,$fjZig),$parcel$exportWildcard(module.exports,$4wblz),$parcel$exportWildcard(module.exports,$goJkr),$parcel$exportWildcard(module.exports,$9QUJ4),$parcel$exportWildcard(module.exports,$56KtY),$parcel$exportWildcard(module.exports,$40TGC),$parcel$exportWildcard(module.exports,$19KWm),$parcel$exportWildcard(module.exports,$9Lshm),$parcel$exportWildcard(module.exports,$cFg1d),$parcel$exportWildcard(module.exports,$5nIdj),$parcel$exportWildcard(module.exports,$8DeQu),$parcel$exportWildcard(module.exports,$2QvMT),$parcel$exportWildcard(module.exports,$gcNAj);
|
|
2
|
+
//# sourceMappingURL=InventoryLogic.28d9cb10.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require("./InventoryLogic.f716bebc.js");var $553fi$leaddreamerstaticforms=require("@leaddreamer/staticforms"),$parcel$global=globalThis,$parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequire3c55;null==parcelRequire&&((parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var a=$parcel$inits[e];delete $parcel$inits[e];var r={id:e,exports:{}};return $parcel$modules[e]=r,a.call(r.exports,r,r.exports),r.exports}var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,a){$parcel$inits[e]=a},$parcel$global.parcelRequire3c55=parcelRequire);var parcelRegister=parcelRequire.register,$fjZig=parcelRequire("fjZig");const $37f30a02897e95be$var$PhysicalProductDefault={created:null,id:null,modified:null,storePageId:"",type:"PHYSICAL",description:null,images:[],isVisible:!0,name:"A Product",seoOptions:{title:"",description:""},tags:[],url:"",urlSlug:"",variantAttributes:[],variants:[{attributes:[],gtin:"",id:"",image:{},mpn:"",shippingMeasurements:{dimensions:{height:0,width:0,length:0,height:0,unit:INCH},weight:{value:0,unit:POUND}},sku:"",stock:{quantity:0,unlimited:!1}}]},$37f30a02897e95be$var$PhysicalProductMap={},$37f30a02897e95be$var$ProductDataForm={Id:"string.uuid",refPath:null,name:"commerce.product",description:"commerce.productDescription",sku:`commerce.isbn:${$fjZig.ISBN_LENGTH}`,markups:`subrecord:${$fjZig.MARKUPS}`,projectQ:"checkbox"},$37f30a02897e95be$var$ProductDefaultForm={Id:"hidden",refPath:"hidden",name:"text",description:"textarea",sku:"text",markups:`subrecord:${$fjZig.MARKUPS}`,projectQ:"checkbox"};$553fi$leaddreamerstaticforms.Forms.Base[$fjZig.PRODUCT]=ProductDefault,$553fi$leaddreamerstaticforms.Forms.BaseForm[$fjZig.PRODUCT]=$37f30a02897e95be$var$ProductDefaultForm,$553fi$leaddreamerstaticforms.Forms.CreateForm[$fjZig.PRODUCT]=$37f30a02897e95be$var$ProductDefaultForm,$553fi$leaddreamerstaticforms.Forms.Data[$fjZig.PRODUCT]=$37f30a02897e95be$var$ProductDataForm,$553fi$leaddreamerstaticforms.Forms.Summarize[$fjZig.PRODUCT]=summarizeProduct,$553fi$leaddreamerstaticforms.Forms.Save[$fjZig.PRODUCT]=updateProduct,$553fi$leaddreamerstaticforms.Forms.SearchBy[$fjZig.PRODUCT]="name";const $37f30a02897e95be$var$SampleJSON={id:"69fa54e8f691fe20c13bc732",type:"PHYSICAL",name:"Stack : : short gemstone earrings",description:'<p style="white-space:pre-wrap;" data-rte-preserve-empty="true">About an inch long, my Stack earrings are quick grabs of a bit of neutral with a pop of color when you want earrings for a casual day look. Choose your favorite palette or ping me with your own color combinations and ideas!</p><p style="white-space:pre-wrap;" data-rte-preserve-empty="true"><span>:: great gift!<br />:: 1.25 inches<br />:: limited edition<br />:: ships 4-7 days from purchase<br />:: handcrafted in tucson, arizona</span></p>',storePageId:"694b2289b16b8d02d4bdaaba",url:"https://sirlinhalljewelry.com/shop/p/stack-earrings-26050500",urlSlug:"p/stack-earrings-26050500",images:[{id:"69fa5769cfa3e81e12d7c224",altText:"PXL_20260505_201834132.jpg",orderIndex:0,url:"https://images.squarespace-cdn.com/content/v1/694b2288b16b8d02d4bdaa0c/2bf39ac2-a49b-4820-a211-961d6a0722ef/PXL_20260505_201834132.jpg",originalSize:{width:480,height:480},availableFormats:[]},{id:"69fa5769f691fe20c13bc9f8",altText:"PXL_20260505_201739701.jpg",orderIndex:1,url:"https://images.squarespace-cdn.com/content/v1/694b2288b16b8d02d4bdaa0c/8d5186e3-e5a1-43bb-9714-77a939b8bc40/PXL_20260505_201739701.jpg",originalSize:{width:480,height:480},availableFormats:[]},{id:"69fa5769cfa3e81e12d7c225",altText:"PXL_20260505_201915047.jpg",orderIndex:2,url:"https://images.squarespace-cdn.com/content/v1/694b2288b16b8d02d4bdaa0c/ff61c7e8-a03b-442e-81b2-db67241d85ec/PXL_20260505_201915047.jpg",originalSize:{width:480,height:480},availableFormats:[]},{id:"69fa5769f691fe20c13bc9f9",altText:"PXL_20260505_202122912.jpg",orderIndex:3,url:"https://images.squarespace-cdn.com/content/v1/694b2288b16b8d02d4bdaa0c/357dfd2f-1bce-4687-b57b-1ff53209d970/PXL_20260505_202122912.jpg",originalSize:{width:480,height:480},availableFormats:[]},{id:"69fa5769a3780355a2edfbb0",altText:"PXL_20260505_202100350.jpg",orderIndex:4,url:"https://images.squarespace-cdn.com/content/v1/694b2288b16b8d02d4bdaa0c/4fcf4192-dbe3-477a-90e7-be0c553f4c5b/PXL_20260505_202100350.jpg",originalSize:{width:480,height:480},availableFormats:[]},{id:"69fa5769cfa3e81e12d7c226",altText:"PXL_20260505_201947380.jpg",orderIndex:5,url:"https://images.squarespace-cdn.com/content/v1/694b2288b16b8d02d4bdaa0c/fba1dcf8-8526-47ab-ab7f-be2ab37a1dbd/PXL_20260505_201947380.jpg",originalSize:{width:480,height:480},availableFormats:[]}],tags:[],seoOptions:{title:"Stack short gemstone and pearl earrings",description:"Tucson designer Lisa Sirlin-Hall's Stack earrings are quick grabs of a bit of neutral with a pop of color when you want earrings for a casual day look."},createdOn:"2026-05-05T20:36:56.235Z",modifiedOn:"2026-05-05T20:48:35.104Z",variants:[{id:"fdb09e8d-467c-412e-a355-f6a40a24af24",sku:"26050101",image:null,pricing:{basePrice:{currency:"USD",value:"68.00"},salePrice:{currency:"USD",value:"0.00"},onSale:!1},stock:{quantity:1,unlimited:!1},attributes:{Color:"Blue with Labradorite"},shippingMeasurements:{weight:{unit:"POUND",value:.0625},dimensions:{unit:"INCH",length:9,width:6,height:.5}},gtin:null,mpn:null},{id:"61c47a68-5acb-4d74-b18b-83ac27e49aeb",sku:"26050102",image:null,pricing:{basePrice:{currency:"USD",value:"68.00"},salePrice:{currency:"USD",value:"0.00"},onSale:!1},stock:{quantity:1,unlimited:!1},attributes:{Color:"Silver with Black Onyx"},shippingMeasurements:{weight:{unit:"POUND",value:.0625},dimensions:{unit:"INCH",length:9,width:6,height:.5}},gtin:null,mpn:null},{id:"4b1ca060-8d0e-4e20-9863-cb37324da85d",sku:"26050103",image:null,pricing:{basePrice:{currency:"USD",value:"68.00"},salePrice:{currency:"USD",value:"0.00"},onSale:!1},stock:{quantity:1,unlimited:!1},attributes:{Color:"Champagne yellow and Pearl"},shippingMeasurements:{weight:{unit:"POUND",value:.0625},dimensions:{unit:"INCH",length:9,width:6,height:.5}},gtin:null,mpn:null}],variantAttributes:["Color"],isVisible:!0},$37f30a02897e95be$var$SquarespaceProductMap={id:"platformIds.SquarespaceId",type:"PHYSICAL",name:"name",description:"description",storePageId:"platformData.squarespaceData.storePageId",url:"URL",urlSlug:"urlSlug",images:["images[index]"],tags:"attributes.tags",seoOptions:"seoOptions",createdOn:"attributes.createdOn",modifiedOn:"attributes.modifiedOn",variants:[$37f30a02897e95be$var$squarespaceVariantMapping],variantAttributes:"variantAttributes",isVisible:"isVisible"};function $37f30a02897e95be$var$squarespaceJSONtoProductMapping(e){console.log(Object.getOwnPropertyNames(JSON.parse(e)))}$37f30a02897e95be$var$squarespaceJSONtoProductMapping($37f30a02897e95be$var$SampleJSON);const $37f30a02897e95be$var$SquarespaceVariantMap={id:"id",sku:"sku",image:"image",pricing:"price",stock:"stock",attributes:"attributes",shippingMeasurements:"shippingMeasurements",gtin:"gtin",mpn:"mpn"};async function $37f30a02897e95be$var$squarespaceVariantMapping(e){}
|
|
2
|
+
//# sourceMappingURL=InventoryLogic.636fbde2.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require("./InventoryLogic.f716bebc.js"),require("./InventoryLogic.b49f09b1.js"),require("./InventoryLogic.e295e814.js"),require("./InventoryLogic.636fbde2.js");var $kEiMh$leaddreamerfirebasewrapper=require("@leaddreamer/firebase-wrapper"),$kEiMh$leaddreamerstaticforms=require("@leaddreamer/staticforms");function $parcel$exportWildcard(e,r){return Object.keys(r).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:function(){return r[a]}})}),e}function $parcel$export(e,r,a,t){Object.defineProperty(e,r,{get:a,set:t,enumerable:!0,configurable:!0})}var $parcel$global=globalThis,$parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequire3c55;null==parcelRequire&&((parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var r=$parcel$inits[e];delete $parcel$inits[e];var a={id:e,exports:{}};return $parcel$modules[e]=a,r.call(a.exports,a,a.exports),a.exports}var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}).register=function(e,r){$parcel$inits[e]=r},$parcel$global.parcelRequire3c55=parcelRequire);var parcelRegister=parcelRequire.register;$parcel$export(module.exports,"createProduct",()=>$3b8191bf4bd48653$export$9c734a715e6666d0),$parcel$export(module.exports,"makeProductFromChild",()=>$3b8191bf4bd48653$export$d4a471daa895146b);var $fjZig=parcelRequire("fjZig"),$19KWm=parcelRequire("19KWm"),$3hlkM=parcelRequire("3hlkM"),$4NOFh=parcelRequire("4NOFh");const $3b8191bf4bd48653$var$ProductDefault={name:"A Product",description:null,recipe:{markups:null,projectQ:!1,created:null,modified:null},image_links:[],type:"PHYSICAL",isVisible:!0,seoOptions:{title:"",description:""},tags:[""],materials:[""],patterns:[""],URL:"",urlSlug:"",variantAttributes:[""],variants:[],google_product_type:"",shipping_time:0,condition:"",adultQ:!1,age_group:"adult",color:[""],material:[""],gender:"unisex",attributes_gemstones:[""],pattern:"",size:"",weight:0,shippingMeasurements:{shipping_length:0,shippin_width:0,shipping_height:0}},$3b8191bf4bd48653$var$ProductDataForm={Id:"string.uuid",refPath:null,name:"commerce.product",description:"commerce.productDescription",sku:`commerce.isbn:${$fjZig.ISBN_LENGTH}`,markups:`subrecord:${$fjZig.MARKUPS}`,projectQ:"checkbox"},$3b8191bf4bd48653$var$ProductDefaultForm={Id:"hidden",refPath:"hidden",name:"text",description:"textarea",sku:"text",markups:`subrecord:${$fjZig.MARKUPS}`,projectQ:"checkbox"};async function $3b8191bf4bd48653$export$9c734a715e6666d0(){}async function $3b8191bf4bd48653$var$updateProduct(e,r=null){return e?.refPath||r?.refPath?(0,$kEiMh$leaddreamerfirebasewrapper.updateRecord)((0,$kEiMh$leaddreamerstaticforms.fillForm)(e,$fjZig.PRODUCT),r,$fjZig.PRODUCT):(console.log("no product specified to save LineItem"),null)}function $3b8191bf4bd48653$var$summarizeProduct(e){return`${e.name} ${e.description}`}function $3b8191bf4bd48653$export$d4a471daa895146b(e){return(0,$19KWm.typedRecordFromChild)(e,$fjZig.PRODUCT)}$kEiMh$leaddreamerstaticforms.Forms.Base[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$ProductDefault,$kEiMh$leaddreamerstaticforms.Forms.BaseForm[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$ProductDefaultForm,$kEiMh$leaddreamerstaticforms.Forms.CreateForm[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$ProductDefaultForm,$kEiMh$leaddreamerstaticforms.Forms.Data[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$ProductDataForm,$kEiMh$leaddreamerstaticforms.Forms.Summarize[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$summarizeProduct,$kEiMh$leaddreamerstaticforms.Forms.Save[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$updateProduct,$kEiMh$leaddreamerstaticforms.Forms.SearchBy[$fjZig.PRODUCT]="name",$parcel$exportWildcard(module.exports,$3hlkM),$parcel$exportWildcard(module.exports,$4NOFh);
|
|
2
|
+
//# sourceMappingURL=InventoryLogic.6d5e9bcf.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function $parcel$exportWildcard(e,r){return Object.keys(r).forEach(function(c){"default"===c||"__esModule"===c||Object.prototype.hasOwnProperty.call(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:function(){return r[c]}})}),e}require("./InventoryLogic.f716bebc.js"),require("./InventoryLogic.87addb57.js"),require("./InventoryLogic.f8d080e8.js"),require("./InventoryLogic.9658c8e7.js"),require("./InventoryLogic.6d5e9bcf.js"),require("./InventoryLogic.20d9efd7.js"),require("./InventoryLogic.b49f09b1.js"),require("./InventoryLogic.4e7ced22.js"),require("./InventoryLogic.1e519cb0.js"),require("./InventoryLogic.74baf986.js"),require("./InventoryLogic.2468e70a.js"),require("./InventoryLogic.e0dc6c34.js"),require("./InventoryLogic.30e7c3e7.js");var $parcel$global=globalThis,$parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequire3c55;null==parcelRequire&&((parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var r=$parcel$inits[e];delete $parcel$inits[e];var c={id:e,exports:{}};return $parcel$modules[e]=c,r.call(c.exports,c,c.exports),c.exports}var l=Error("Cannot find module '"+e+"'");throw l.code="MODULE_NOT_FOUND",l}).register=function(e,r){$parcel$inits[e]=r},$parcel$global.parcelRequire3c55=parcelRequire);var parcelRegister=parcelRequire.register,$fjZig=parcelRequire("fjZig"),$cFg1d=parcelRequire("cFg1d"),$9Lshm=parcelRequire("9Lshm"),$4wblz=parcelRequire("4wblz"),$5nIdj=parcelRequire("5nIdj"),$goJkr=parcelRequire("goJkr"),$40TGC=parcelRequire("40TGC"),$gcNAj=parcelRequire("gcNAj"),$9QUJ4=parcelRequire("9QUJ4"),$8DeQu=parcelRequire("8DeQu"),$56KtY=parcelRequire("56KtY"),$2QvMT=parcelRequire("2QvMT"),$19KWm=parcelRequire("19KWm");$parcel$exportWildcard(module.exports,$fjZig),$parcel$exportWildcard(module.exports,$4wblz),$parcel$exportWildcard(module.exports,$goJkr),$parcel$exportWildcard(module.exports,$9QUJ4),$parcel$exportWildcard(module.exports,$56KtY),$parcel$exportWildcard(module.exports,$40TGC),$parcel$exportWildcard(module.exports,$19KWm),$parcel$exportWildcard(module.exports,$9Lshm),$parcel$exportWildcard(module.exports,$cFg1d),$parcel$exportWildcard(module.exports,$5nIdj),$parcel$exportWildcard(module.exports,$8DeQu),$parcel$exportWildcard(module.exports,$2QvMT),$parcel$exportWildcard(module.exports,$gcNAj);
|
|
2
|
+
//# sourceMappingURL=InventoryLogic.9878bc32.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require("./InventoryLogic.f716bebc.js"),require("./InventoryLogic.b49f09b1.js"),require("./InventoryLogic.e295e814.js"),require("./InventoryLogic.b8b0ac74.js");var $kEiMh$leaddreamerfirebasewrapper=require("@leaddreamer/firebase-wrapper"),$kEiMh$leaddreamerstaticforms=require("@leaddreamer/staticforms");function $parcel$exportWildcard(e,r){return Object.keys(r).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:function(){return r[a]}})}),e}function $parcel$export(e,r,a,t){Object.defineProperty(e,r,{get:a,set:t,enumerable:!0,configurable:!0})}var $parcel$global=globalThis,$parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequire3c55;null==parcelRequire&&((parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var r=$parcel$inits[e];delete $parcel$inits[e];var a={id:e,exports:{}};return $parcel$modules[e]=a,r.call(a.exports,a,a.exports),a.exports}var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}).register=function(e,r){$parcel$inits[e]=r},$parcel$global.parcelRequire3c55=parcelRequire);var parcelRegister=parcelRequire.register;$parcel$export(module.exports,"createProduct",()=>$3b8191bf4bd48653$export$9c734a715e6666d0),$parcel$export(module.exports,"makeProductFromChild",()=>$3b8191bf4bd48653$export$d4a471daa895146b);var $fjZig=parcelRequire("fjZig"),$19KWm=parcelRequire("19KWm"),$3hlkM=parcelRequire("3hlkM"),$4NOFh=parcelRequire("4NOFh");const $3b8191bf4bd48653$var$ProductDefault={name:"A Product",description:null,recipe:{markups:null,projectQ:!1,created:null,modified:null},image_links:[],type:"PHYSICAL",isVisible:!0,seoOptions:{title:"",description:""},tags:[""],materials:[""],patterns:[""],URL:"",urlSlug:"",variantAttributes:[""],variants:[],google_product_type:"",shipping_time:0,condition:"",adultQ:!1,age_group:"adult",color:[""],material:[""],gender:"unisex",attributes_gemstones:[""],pattern:"",size:"",weight:0,shippingMeasurements:{shipping_length:0,shippin_width:0,shipping_height:0}},$3b8191bf4bd48653$var$ProductDataForm={Id:"string.uuid",refPath:null,name:"commerce.product",description:"commerce.productDescription",sku:`commerce.isbn:${$fjZig.ISBN_LENGTH}`,markups:`subrecord:${$fjZig.MARKUPS}`,projectQ:"checkbox"},$3b8191bf4bd48653$var$ProductDefaultForm={Id:"hidden",refPath:"hidden",name:"text",description:"textarea",sku:"text",markups:`subrecord:${$fjZig.MARKUPS}`,projectQ:"checkbox"};async function $3b8191bf4bd48653$export$9c734a715e6666d0(){}async function $3b8191bf4bd48653$var$updateProduct(e,r=null){return e?.refPath||r?.refPath?(0,$kEiMh$leaddreamerfirebasewrapper.updateRecord)((0,$kEiMh$leaddreamerstaticforms.fillForm)(e,$fjZig.PRODUCT),r,$fjZig.PRODUCT):(console.log("no product specified to save LineItem"),null)}function $3b8191bf4bd48653$var$summarizeProduct(e){return`${e.name} ${e.description}`}function $3b8191bf4bd48653$export$d4a471daa895146b(e){return(0,$19KWm.typedRecordFromChild)(e,$fjZig.PRODUCT)}$kEiMh$leaddreamerstaticforms.Forms.Base[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$ProductDefault,$kEiMh$leaddreamerstaticforms.Forms.BaseForm[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$ProductDefaultForm,$kEiMh$leaddreamerstaticforms.Forms.CreateForm[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$ProductDefaultForm,$kEiMh$leaddreamerstaticforms.Forms.Data[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$ProductDataForm,$kEiMh$leaddreamerstaticforms.Forms.Summarize[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$summarizeProduct,$kEiMh$leaddreamerstaticforms.Forms.Save[$fjZig.PRODUCT]=$3b8191bf4bd48653$var$updateProduct,$kEiMh$leaddreamerstaticforms.Forms.SearchBy[$fjZig.PRODUCT]="name",$parcel$exportWildcard(module.exports,$3hlkM),$parcel$exportWildcard(module.exports,$4NOFh);
|
|
2
|
+
//# sourceMappingURL=InventoryLogic.b5934d14.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function $parcel$export(i,e,t,n){Object.defineProperty(i,e,{get:t,set:n,enumerable:!0,configurable:!0})}require("mathjs"),$parcel$export(module.exports,"GoogleAPIProductMap",()=>$263382218db2c3bc$export$4059922dac929494);const $263382218db2c3bc$export$4059922dac929494={id:"variants[index].sku",title:"name",item_group_id:"id",item_group_title:"title",description:"description",link:"URL",image_link:"variants[index].image.URL",additional_image_link:"mediaobject.images[all]",video_link:"mediaobject.video_image.video_link",virtual_model_link:"mediaobject.virtual_model.virtual_model_link",mobile_link:null,availability:null,availability_date:"variants[index].availability_date",cost_of_goods_sold:null,expiration_date:"variants[index].expiration_date",price:"variants[index].pricing.baseprice.value| |variants[index].pricing.baseprice.currencyDescription.displayName",sale_price:"variants[index].pricing.saleprice.value| |variants[index].pricing.saleprice.currencyDescription.displayName",sale_price_effective_date:"variants[index].pricing.effectiveDate.",google_product_category:"google_product_category",product_type:"product_type",brand:"brand.name",gtin:"variants[index].gtin",mpn:"variants[index].gtin",adult:"demographics.adult",age_group:"demographics.age_group",gender:"demographics.gender",condition:"attributes.condition",color:"attributes.colors[0]",material:"attributes.materials[0]",pattern:"attributes.patterns[0]",product_length:"variants[index].productMeasurements.dimensions.length&' '&variants[index].productMeasurements.dimensions.unit",product_width:"variants[index].productMeasurements.dimensions.width&' '&variants[index].productMeasurements.dimensions.unit",product_height:"variants[index].productMeasurements.dimensions.height&' '&variants[index].productMeasurements.dimensions.unit",product_highlight:"short_description",product_weight:"variants[index].productMeasurements.weight.value&' '&variants[index].productMeasurements.weight.unit",size:"variants[index].sizeSpecification.hasMeasurement.value",size_type:"variants[index].sizeSpecification.sizeGroup",size_system:"variants[index].sizeSpecification.sizeSystem",variant_option:"variants[index].sizeSpecification.attributes",ads_redirect:null,custom_label_0:null,custom_label_1:null,custom_label_2:null,custom_label_3:null,custom_label_4:null,promotion_id:null,lifestyle_image_link:null,short_title:"short_name",shipping_length:"variants[index].shippingMeasurements.dimensions.length",shipping_width:"variants[index].shippingMeasurements.dimensions.width",shipping_height:"variants[index].shippingMeasurements.dimensions.height",shipping_label:null};function $263382218db2c3bc$var$GoogleProductAPIField(i,e){}const $263382218db2c3bc$var$GoogleProductCategory={"Animals & Pet Supplies":{index:1,"Live Animals":{index:3237},"Pet Supplies":{index:2,"Bird Supplies":{index:3,"Bird Cage Accessories":{index:7385,"Bird Cage Bird Baths":{index:499954},"Bird Cage Food & Water Dishes":{index:7386}},"Bird Cages & Stands":{index:4989},"Bird Food":{index:4990},"Bird Gyms & Playstands":{index:7398},"Bird Ladders & Perches":{index:4991},"Bird Toys":{index:4992},"Bird Treats":{index:4993}},"Cat Supplies":{index:4,"":{}}}}};
|
|
2
|
+
//# sourceMappingURL=InventoryLogic.e295e814.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("./InventoryLogic.
|
|
1
|
+
require("./InventoryLogic.9878bc32.js");var $kAdfK$leaddreamerfirebasewrapper=require("@leaddreamer/firebase-wrapper"),$kAdfK$leaddreamergenericutilities=require("@leaddreamer/genericutilities"),$kAdfK$leaddreamerstaticforms=require("@leaddreamer/staticforms");function $parcel$interopDefault(e){return e&&e.__esModule?e.default:e}function $parcel$defineInteropFlag(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function $parcel$exportWildcard(e,r){return Object.keys(r).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:function(){return r[a]}})}),e}function $parcel$export(e,r,a,l){Object.defineProperty(e,r,{get:a,set:l,enumerable:!0,configurable:!0})}var $parcel$global=globalThis,$parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequire3c55;null==parcelRequire&&((parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var r=$parcel$inits[e];delete $parcel$inits[e];var a={id:e,exports:{}};return $parcel$modules[e]=a,r.call(a.exports,a,a.exports),a.exports}var l=Error("Cannot find module '"+e+"'");throw l.code="MODULE_NOT_FOUND",l}).register=function(e,r){$parcel$inits[e]=r},$parcel$global.parcelRequire3c55=parcelRequire);var parcelRegister=parcelRequire.register;$parcel$defineInteropFlag(module.exports),$parcel$export(module.exports,"databasePromise",()=>$68678d58f0f75295$export$49c539bdd2044f17),$parcel$export(module.exports,"default",()=>$68678d58f0f75295$export$2e2bcd8739ae039);var $9qs3A=parcelRequire("9qs3A");async function $68678d58f0f75295$export$49c539bdd2044f17(e,r,a=null){return(0,$kAdfK$leaddreamergenericutilities.setLogger)(a),$parcel$interopDefault($kAdfK$leaddreamerfirebasewrapper)(e,r,a)}var $68678d58f0f75295$export$2e2bcd8739ae039=$68678d58f0f75295$export$49c539bdd2044f17;$parcel$exportWildcard(module.exports,$kAdfK$leaddreamerfirebasewrapper),$parcel$exportWildcard(module.exports,$kAdfK$leaddreamergenericutilities),$parcel$exportWildcard(module.exports,$9qs3A),$parcel$exportWildcard(module.exports,$kAdfK$leaddreamerstaticforms);
|
|
2
2
|
//# sourceMappingURL=index.js.map
|