@shushed/helpers 0.0.279 → 0.0.280-main-20260226122307
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/dist/cjs/contracts/asset.schema.json +0 -5
- package/dist/cjs/contracts/gift-voucher.schema.json +4 -12
- package/dist/cjs/contracts/messages/product.schema.json +5 -1
- package/dist/cjs/contracts/order/item.schema.json +21 -79
- package/dist/cjs/contracts/order/shipment.schema.json +8 -50
- package/dist/cjs/contracts/product.schema.json +1 -73
- package/dist/cjs/dist-dereferenced/asset.js +1 -1
- package/dist/cjs/dist-dereferenced/category-tree.js +1 -1
- package/dist/cjs/dist-dereferenced/development-colour.js +1 -1
- package/dist/cjs/dist-dereferenced/gift-voucher.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/delivered.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/new.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/processed.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/returned.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/shipped.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/product.js +1 -1
- package/dist/cjs/dist-dereferenced/order/item.js +1 -1
- package/dist/cjs/dist-dereferenced/order/orderMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +1 -1
- package/dist/cjs/dist-dereferenced/product.js +1 -1
- package/dist/cjs/src-public/airtable.js +9 -196
- package/dist/cjs/src-public/bcOrder.js +31 -18
- package/dist/cjs/src-public/centra.js +4 -264
- package/dist/cjs/src-public/env.js +0 -2
- package/dist/cjs/src-public/fredhopper/fredhopper.base.js +21 -35
- package/dist/cjs/src-public/pubsub.js +26 -83
- package/dist/cjs/src-public/utils.js +1 -0
- package/dist/types/dist-dereferenced/asset.d.ts +0 -4
- package/dist/types/dist-dereferenced/category-tree.d.ts +0 -3
- package/dist/types/dist-dereferenced/development-colour.d.ts +0 -4
- package/dist/types/dist-dereferenced/gift-voucher.d.ts +1 -7
- package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +0 -9
- package/dist/types/dist-dereferenced/messages/order/new.d.ts +0 -9
- package/dist/types/dist-dereferenced/messages/order/processed.d.ts +0 -9
- package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +0 -9
- package/dist/types/dist-dereferenced/messages/order/returned.d.ts +0 -9
- package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +0 -9
- package/dist/types/dist-dereferenced/messages/product.d.ts +1 -87
- package/dist/types/dist-dereferenced/order/index.d.ts +0 -9
- package/dist/types/dist-dereferenced/order/item.d.ts +0 -3
- package/dist/types/dist-dereferenced/order/orderMain.d.ts +0 -9
- package/dist/types/dist-dereferenced/order/shipment/index.d.ts +0 -6
- package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +0 -6
- package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +0 -6
- package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +0 -6
- package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +0 -6
- package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +0 -6
- package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +0 -6
- package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +0 -6
- package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +0 -6
- package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +0 -6
- package/dist/types/dist-dereferenced/product.d.ts +0 -86
- package/dist/types/dist-types/asset.d.ts +0 -1
- package/dist/types/dist-types/category-tree.d.ts +0 -1
- package/dist/types/dist-types/development-colour.d.ts +0 -1
- package/dist/types/dist-types/gift-voucher.d.ts +3 -13
- package/dist/types/dist-types/messages/order/delivered.d.ts +0 -3
- package/dist/types/dist-types/messages/order/new.d.ts +0 -3
- package/dist/types/dist-types/messages/order/processed.d.ts +0 -3
- package/dist/types/dist-types/messages/order/return-initiated.d.ts +0 -3
- package/dist/types/dist-types/messages/order/returned.d.ts +0 -3
- package/dist/types/dist-types/messages/order/shipped.d.ts +0 -3
- package/dist/types/dist-types/messages/product.d.ts +0 -26
- package/dist/types/dist-types/order/item.d.ts +0 -1
- package/dist/types/dist-types/order/orderMain.d.ts +0 -3
- package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +0 -2
- package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +0 -2
- package/dist/types/dist-types/order/shipment/pos/return.d.ts +0 -2
- package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +0 -2
- package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +0 -2
- package/dist/types/dist-types/order/shipment/shipped/return.d.ts +0 -2
- package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +0 -2
- package/dist/types/dist-types/product.d.ts +0 -26
- package/dist/types/src-public/airtable.d.ts +4 -30
- package/dist/types/src-public/bcOrder.d.ts +1 -1
- package/dist/types/src-public/centra.d.ts +0 -54
- package/dist/types/src-public/fredhopper/fredhopper.base.d.ts +0 -1
- package/dist/types/src-public/fredhopper/fredhopper.types.d.ts +1 -1
- package/dist/types/src-public/pubsub.d.ts +1 -6
- package/dist/types/src-public/types.d.ts +0 -2
- package/package.json +1 -1
|
@@ -39,14 +39,8 @@
|
|
|
39
39
|
]
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
"is_expired": {
|
|
43
|
-
"type": "boolean"
|
|
44
|
-
},
|
|
45
42
|
"customer_email": {
|
|
46
|
-
"type": [
|
|
47
|
-
"string",
|
|
48
|
-
"null"
|
|
49
|
-
],
|
|
43
|
+
"type": ["string", "null"],
|
|
50
44
|
"format": "email",
|
|
51
45
|
"description": "Normalized and lowercased email. Null if invalid.",
|
|
52
46
|
"example": "alice.johnson@example.com"
|
|
@@ -61,10 +55,6 @@
|
|
|
61
55
|
]
|
|
62
56
|
}
|
|
63
57
|
},
|
|
64
|
-
"original_amount": {
|
|
65
|
-
"$ref": "https://shushed.example.com/money.schema.json",
|
|
66
|
-
"description": "Original Gift Voucher Amount"
|
|
67
|
-
},
|
|
68
58
|
"balance": {
|
|
69
59
|
"$ref": "https://shushed.example.com/money.schema.json",
|
|
70
60
|
"description": "Balance currently on the voucher - Example: 25.50"
|
|
@@ -85,6 +75,8 @@
|
|
|
85
75
|
"valid_until",
|
|
86
76
|
"customer_email",
|
|
87
77
|
"purchased_at",
|
|
88
|
-
"balance"
|
|
78
|
+
"balance",
|
|
79
|
+
"is_physical",
|
|
80
|
+
"has_been_emailed"
|
|
89
81
|
]
|
|
90
82
|
}
|
|
@@ -13,12 +13,16 @@
|
|
|
13
13
|
"required": [
|
|
14
14
|
"product_id",
|
|
15
15
|
"style_id",
|
|
16
|
+
"product_name",
|
|
16
17
|
"variants",
|
|
17
18
|
"images",
|
|
18
19
|
"attributes",
|
|
20
|
+
"is_available_to_order",
|
|
19
21
|
"created_at",
|
|
20
22
|
"last_modified_at",
|
|
21
|
-
"colour_family_name"
|
|
23
|
+
"colour_family_name",
|
|
24
|
+
"colour_label",
|
|
25
|
+
"vat_amount"
|
|
22
26
|
]
|
|
23
27
|
}
|
|
24
28
|
]
|
|
@@ -12,105 +12,59 @@
|
|
|
12
12
|
"type": "object",
|
|
13
13
|
"properties": {
|
|
14
14
|
"sku": {
|
|
15
|
-
"type": [
|
|
16
|
-
|
|
17
|
-
],
|
|
18
|
-
"faker": {
|
|
19
|
-
"custom.sku": []
|
|
20
|
-
},
|
|
15
|
+
"type": ["string"],
|
|
16
|
+
"faker": { "custom.sku": [] },
|
|
21
17
|
"description": "Stock Keeping Unit identifier for the item.Combination of style code and colour code and "
|
|
22
18
|
},
|
|
23
19
|
"linked_style_id": {
|
|
24
|
-
"type": [
|
|
25
|
-
|
|
26
|
-
"null"
|
|
27
|
-
],
|
|
28
|
-
"faker": {
|
|
29
|
-
"custom.style": []
|
|
30
|
-
},
|
|
20
|
+
"type": ["string", "null"],
|
|
21
|
+
"faker": { "custom.style": [] },
|
|
31
22
|
"description": "Style ID of the parent item if this is a variation."
|
|
32
23
|
},
|
|
33
24
|
"colour_id": {
|
|
34
|
-
"type": [
|
|
35
|
-
|
|
36
|
-
"null"
|
|
37
|
-
],
|
|
38
|
-
"faker": {
|
|
39
|
-
"custom.color": []
|
|
40
|
-
},
|
|
25
|
+
"type": ["string", "null"],
|
|
26
|
+
"faker": { "custom.color": [] },
|
|
41
27
|
"description": "Code from Object Colorway - Example: 3203, null if not applicable (e.g., non-product items like NEWSLETTER)"
|
|
42
28
|
},
|
|
43
29
|
"style_id": {
|
|
44
|
-
"type": [
|
|
45
|
-
|
|
46
|
-
"null"
|
|
47
|
-
],
|
|
48
|
-
"faker": {
|
|
49
|
-
"custom.style": []
|
|
50
|
-
},
|
|
30
|
+
"type": ["string", "null"],
|
|
31
|
+
"faker": { "custom.style": [] },
|
|
51
32
|
"description": "Code from Object style - Example: 000697, null if not applicable (e.g., non-product items like NEWSLETTER)"
|
|
52
33
|
},
|
|
53
34
|
"product_id": {
|
|
54
|
-
"type": [
|
|
55
|
-
"string",
|
|
56
|
-
"null"
|
|
57
|
-
],
|
|
35
|
+
"type": ["string", "null"],
|
|
58
36
|
"description": "Code from Object style and colour - Example: 000697-3203"
|
|
59
37
|
},
|
|
60
38
|
"colour_name": {
|
|
61
|
-
"type": [
|
|
62
|
-
|
|
63
|
-
],
|
|
64
|
-
"faker": {
|
|
65
|
-
"color.human": []
|
|
66
|
-
},
|
|
39
|
+
"type": ["string"],
|
|
40
|
+
"faker": { "color.human": [] },
|
|
67
41
|
"description": "Node Name from Object Colorway - Example: Toffee Brown"
|
|
68
42
|
},
|
|
69
43
|
"size_name": {
|
|
70
|
-
"type": [
|
|
71
|
-
|
|
72
|
-
],
|
|
73
|
-
"faker": {
|
|
74
|
-
"custom.size": []
|
|
75
|
-
},
|
|
44
|
+
"type": ["string"],
|
|
45
|
+
"faker": { "custom.size": [] },
|
|
76
46
|
"description": "HS_ColorwayAttr_SizeRangeNodeName from Object ColorwayAttributes - Example: 10-16"
|
|
77
47
|
},
|
|
78
48
|
"preorder_date": {
|
|
79
|
-
"type": [
|
|
80
|
-
"string",
|
|
81
|
-
"null"
|
|
82
|
-
],
|
|
49
|
+
"type": ["string", "null"],
|
|
83
50
|
"format": "date",
|
|
84
51
|
"description": "Expected availability date if the item is on preorder."
|
|
85
52
|
},
|
|
86
53
|
"quantity": {
|
|
87
|
-
"type": [
|
|
88
|
-
"integer"
|
|
89
|
-
],
|
|
54
|
+
"type": ["integer"],
|
|
90
55
|
"minimum": 0,
|
|
91
|
-
"faker": {
|
|
92
|
-
"minimum": 0,
|
|
93
|
-
"maximum": 10
|
|
94
|
-
},
|
|
56
|
+
"faker": { "minimum": 0, "maximum": 10 },
|
|
95
57
|
"description": "Number of units ordered. Represented as integer."
|
|
96
58
|
},
|
|
97
59
|
"unit_price_status": {
|
|
98
60
|
"type": "string",
|
|
99
|
-
"enum": [
|
|
100
|
-
"rrp",
|
|
101
|
-
"perm",
|
|
102
|
-
"pos"
|
|
103
|
-
],
|
|
61
|
+
"enum": ["rrp", "perm", "pos"],
|
|
104
62
|
"description": "Pricing status: rrp (Full Price), perm (Markdown), pos (Promotional)."
|
|
105
63
|
},
|
|
106
64
|
"returned_quantity": {
|
|
107
|
-
"type": [
|
|
108
|
-
"integer"
|
|
109
|
-
],
|
|
65
|
+
"type": ["integer"],
|
|
110
66
|
"minimum": 0,
|
|
111
|
-
"faker": {
|
|
112
|
-
"maximum": 1
|
|
113
|
-
},
|
|
67
|
+
"faker": { "maximum": 1 },
|
|
114
68
|
"description": "Number of units returned. Represented as integer."
|
|
115
69
|
},
|
|
116
70
|
"unit_price_net": {
|
|
@@ -122,22 +76,10 @@
|
|
|
122
76
|
"description": "Gross unit price in smallest currency unit. Represented as integer."
|
|
123
77
|
},
|
|
124
78
|
"discount_code": {
|
|
125
|
-
"type": [
|
|
126
|
-
|
|
127
|
-
"null"
|
|
128
|
-
],
|
|
129
|
-
"faker": {
|
|
130
|
-
"format": "uuid"
|
|
131
|
-
},
|
|
79
|
+
"type": ["string", "null"],
|
|
80
|
+
"faker": { "format": "uuid" },
|
|
132
81
|
"description": "Code applied to trigger a discount, if any."
|
|
133
82
|
},
|
|
134
|
-
"discount_campaign": {
|
|
135
|
-
"type": [
|
|
136
|
-
"string",
|
|
137
|
-
"null"
|
|
138
|
-
],
|
|
139
|
-
"description": "Voucher code or campaign name for the purchase"
|
|
140
|
-
},
|
|
141
83
|
"cost_net": {
|
|
142
84
|
"$ref": "https://shushed.example.com/money.schema.json"
|
|
143
85
|
}
|
|
@@ -12,21 +12,12 @@
|
|
|
12
12
|
"type": "object",
|
|
13
13
|
"properties": {
|
|
14
14
|
"erp_id": {
|
|
15
|
-
"type": [
|
|
16
|
-
|
|
17
|
-
],
|
|
18
|
-
"faker": {
|
|
19
|
-
"custom.documentid": [
|
|
20
|
-
"SP",
|
|
21
|
-
9
|
|
22
|
-
]
|
|
23
|
-
},
|
|
15
|
+
"type": ["string"],
|
|
16
|
+
"faker": { "custom.documentid": ["SP", 9] },
|
|
24
17
|
"description": "Unique identifier for the shipment from the ERP system."
|
|
25
18
|
},
|
|
26
19
|
"type": {
|
|
27
|
-
"type": [
|
|
28
|
-
"string"
|
|
29
|
-
],
|
|
20
|
+
"type": ["string"],
|
|
30
21
|
"enum": [
|
|
31
22
|
"SHIPPED-OUTBOUND",
|
|
32
23
|
"SHIPPED-RETURN",
|
|
@@ -36,45 +27,17 @@
|
|
|
36
27
|
"description": "Type of shipment. Can be shipped or returned from warehouse or POS."
|
|
37
28
|
},
|
|
38
29
|
"shipped_at": {
|
|
39
|
-
"type": [
|
|
40
|
-
"string"
|
|
41
|
-
],
|
|
30
|
+
"type": ["string"],
|
|
42
31
|
"format": "date-time",
|
|
43
32
|
"description": "Date and time the shipment was shipped."
|
|
44
33
|
},
|
|
45
34
|
"status": {
|
|
46
|
-
"type": [
|
|
47
|
-
|
|
48
|
-
],
|
|
49
|
-
"enum": [
|
|
50
|
-
"PENDING",
|
|
51
|
-
"SHIPPED",
|
|
52
|
-
"RECEIVED",
|
|
53
|
-
"CANCELLED"
|
|
54
|
-
],
|
|
35
|
+
"type": ["string"],
|
|
36
|
+
"enum": ["PENDING", "SHIPPED", "RECEIVED", "CANCELLED"],
|
|
55
37
|
"description": "Current status of the shipment."
|
|
56
38
|
},
|
|
57
|
-
"discount_code": {
|
|
58
|
-
"type": [
|
|
59
|
-
"string",
|
|
60
|
-
"null"
|
|
61
|
-
],
|
|
62
|
-
"faker": {
|
|
63
|
-
"format": "uuid"
|
|
64
|
-
},
|
|
65
|
-
"description": "Code applied to trigger a discount, if any."
|
|
66
|
-
},
|
|
67
|
-
"discount_campaign": {
|
|
68
|
-
"type": [
|
|
69
|
-
"string",
|
|
70
|
-
"null"
|
|
71
|
-
],
|
|
72
|
-
"description": "Voucher code or campaign name for the purchase"
|
|
73
|
-
},
|
|
74
39
|
"items": {
|
|
75
|
-
"type": [
|
|
76
|
-
"array"
|
|
77
|
-
],
|
|
40
|
+
"type": ["array"],
|
|
78
41
|
"items": {
|
|
79
42
|
"type": "object",
|
|
80
43
|
"anyOf": [
|
|
@@ -91,10 +54,5 @@
|
|
|
91
54
|
}
|
|
92
55
|
}
|
|
93
56
|
],
|
|
94
|
-
"required": [
|
|
95
|
-
"erp_id",
|
|
96
|
-
"shipped_at",
|
|
97
|
-
"status",
|
|
98
|
-
"items"
|
|
99
|
-
]
|
|
57
|
+
"required": ["erp_id", "shipped_at", "status", "items"]
|
|
100
58
|
}
|
|
@@ -97,13 +97,6 @@
|
|
|
97
97
|
},
|
|
98
98
|
"description": "Example - [20% Off, Summer Sale])"
|
|
99
99
|
},
|
|
100
|
-
"images": {
|
|
101
|
-
"type": "array",
|
|
102
|
-
"items": {
|
|
103
|
-
"$ref": "https://shushed.example.com/asset.schema.json"
|
|
104
|
-
},
|
|
105
|
-
"description": "List of product image assets"
|
|
106
|
-
},
|
|
107
100
|
"sizerange_code": {
|
|
108
101
|
"type": "string",
|
|
109
102
|
"description": "Size range assigned to this product. Defines sizes to be created"
|
|
@@ -226,26 +219,10 @@
|
|
|
226
219
|
"type": "string"
|
|
227
220
|
},
|
|
228
221
|
"description": "Drop - Example: [SS26 - December, SS25 - April]"
|
|
229
|
-
},
|
|
230
|
-
"complete_the_look": {
|
|
231
|
-
"type": [
|
|
232
|
-
"array"
|
|
233
|
-
],
|
|
234
|
-
"items": {
|
|
235
|
-
"type": "string"
|
|
236
|
-
},
|
|
237
|
-
"description": "Related products to show in carousel"
|
|
238
222
|
}
|
|
239
223
|
},
|
|
240
224
|
"required": []
|
|
241
225
|
},
|
|
242
|
-
"principal_category": {
|
|
243
|
-
"type": [
|
|
244
|
-
"string",
|
|
245
|
-
"null"
|
|
246
|
-
],
|
|
247
|
-
"description": "The main category assigned to the product - Example: dresses"
|
|
248
|
-
},
|
|
249
226
|
"category_assignments": {
|
|
250
227
|
"type": "array",
|
|
251
228
|
"items": {
|
|
@@ -284,14 +261,7 @@
|
|
|
284
261
|
"number",
|
|
285
262
|
"null"
|
|
286
263
|
],
|
|
287
|
-
"description": "
|
|
288
|
-
},
|
|
289
|
-
"rrp": {
|
|
290
|
-
"type": [
|
|
291
|
-
"number",
|
|
292
|
-
"null"
|
|
293
|
-
],
|
|
294
|
-
"description": "Recommended Retail Price (before discount). Example: 29.99"
|
|
264
|
+
"description": "Base Price - Example: 29.99"
|
|
295
265
|
},
|
|
296
266
|
"stock_quantity_score": {
|
|
297
267
|
"type": "number",
|
|
@@ -308,20 +278,6 @@
|
|
|
308
278
|
],
|
|
309
279
|
"description": "Shoes, Alpha, Numeric, Dual-Alpha"
|
|
310
280
|
},
|
|
311
|
-
"markdown_price": {
|
|
312
|
-
"type": [
|
|
313
|
-
"number",
|
|
314
|
-
"null"
|
|
315
|
-
],
|
|
316
|
-
"description": "Price after discount. Example: 29.99"
|
|
317
|
-
},
|
|
318
|
-
"cost_price": {
|
|
319
|
-
"type": [
|
|
320
|
-
"number",
|
|
321
|
-
"null"
|
|
322
|
-
],
|
|
323
|
-
"description": "Cost price of the product. Example: 12.50"
|
|
324
|
-
},
|
|
325
281
|
"sizeguide_type": {
|
|
326
282
|
"type": [
|
|
327
283
|
"string",
|
|
@@ -388,13 +344,6 @@
|
|
|
388
344
|
],
|
|
389
345
|
"description": "The average weight of the garmet (across sizes)"
|
|
390
346
|
},
|
|
391
|
-
"average_weight": {
|
|
392
|
-
"type": [
|
|
393
|
-
"number",
|
|
394
|
-
"null"
|
|
395
|
-
],
|
|
396
|
-
"description": "The average weight of the product in grams"
|
|
397
|
-
},
|
|
398
347
|
"main_fibre": {
|
|
399
348
|
"type": [
|
|
400
349
|
"string",
|
|
@@ -507,27 +456,6 @@
|
|
|
507
456
|
"type": "string"
|
|
508
457
|
},
|
|
509
458
|
"description": " - Example: Fabric unlined / do not tumble dry"
|
|
510
|
-
},
|
|
511
|
-
"sleeve_length": {
|
|
512
|
-
"type": [
|
|
513
|
-
"string",
|
|
514
|
-
"null"
|
|
515
|
-
],
|
|
516
|
-
"description": "Sleeve length - Example: Long / Short / 3/4"
|
|
517
|
-
},
|
|
518
|
-
"heel_height": {
|
|
519
|
-
"type": [
|
|
520
|
-
"string",
|
|
521
|
-
"null"
|
|
522
|
-
],
|
|
523
|
-
"description": "Heel height - Example: High / Mid / Flat"
|
|
524
|
-
},
|
|
525
|
-
"occasion": {
|
|
526
|
-
"type": [
|
|
527
|
-
"string",
|
|
528
|
-
"null"
|
|
529
|
-
],
|
|
530
|
-
"description": "Occasion - Example: Casual / Formal / Party"
|
|
531
459
|
}
|
|
532
460
|
},
|
|
533
461
|
"required": []
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "product_id": { "type": "string" }, "dash_id": { "type": "string" }, "
|
|
3
|
+
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "product_id": { "type": "string" }, "dash_id": { "type": "string" }, "dash_folder_path": { "type": "string" }, "source_url": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "last_modified_at": { "type": "string", "format": "date-time" }, "width": { "type": "integer", "minimum": 0 }, "height": { "type": "integer", "minimum": 0 }, "meta": { "type": "object", "additionalProperties": true }, "content_type": { "type": "string", "pattern": "^[a-z0-9-/]+$" }, "file_name": { "type": "string", "pattern": "^[a-z0-9-.]+$" } }, "required": ["source_url", "content_type", "last_modified_at"], "$id": "https://shushed.example.com/asset.json" };
|
|
4
4
|
exports.default = schema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Category Tree", "additionalProperties": false, "type": "object", "$defs": { "categoryNode": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "branchId": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "array", "items": { "type": "string" } }, "
|
|
3
|
+
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Category Tree", "additionalProperties": false, "type": "object", "$defs": { "categoryNode": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "branchId": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "array", "items": { "type": "string" } }, "parentCategory": { "type": ["string", "null"] }, "displayPath": { "type": "string" }, "pathId": { "type": "array", "items": { "type": "string" } }, "children": { "type": "array", "items": { "$ref": "#/$defs/categoryNode" } } }, "required": ["id", "branchId", "name", "path", "pathId", "children"] } }, "properties": { "children": { "type": "array", "items": { "$ref": "#/$defs/categoryNode" } } }, "required": ["children"], "$id": "https://shushed.example.com/category-tree.schema.json" };
|
|
4
4
|
exports.default = schema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Development Colour", "type": "object", "additionalProperties": false, "properties": { "colour_id": { "type": "string" }, "name": { "type": ["string", "null"] }, "rgb": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "cmyk": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "pantone": { "anyOf": [{ "type": "null" }, { "type": "object", "properties": { "name": { "type": "string" }, "system": { "type": "string", "pattern": "^[A-Z0-9-]+$" }, "id": { "type": "string", "pattern": "^[A-Z0-9-]+$" } } }] }, "display_name": { "type": ["string", "null"], "pattern": "^[ a-z-]+$" }, "family_display_name": { "type": ["string", "null"], "pattern": "^[ a-z]+$" }, "source_asset": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "product_id": { "type": "string" }, "dash_id": { "type": "string" }, "
|
|
3
|
+
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Development Colour", "type": "object", "additionalProperties": false, "properties": { "colour_id": { "type": "string" }, "name": { "type": ["string", "null"] }, "rgb": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "cmyk": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "pantone": { "anyOf": [{ "type": "null" }, { "type": "object", "properties": { "name": { "type": "string" }, "system": { "type": "string", "pattern": "^[A-Z0-9-]+$" }, "id": { "type": "string", "pattern": "^[A-Z0-9-]+$" } } }] }, "display_name": { "type": ["string", "null"], "pattern": "^[ a-z-]+$" }, "family_display_name": { "type": ["string", "null"], "pattern": "^[ a-z]+$" }, "source_asset": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "product_id": { "type": "string" }, "dash_id": { "type": "string" }, "dash_folder_path": { "type": "string" }, "source_url": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "last_modified_at": { "type": "string", "format": "date-time" }, "width": { "type": "integer", "minimum": 0 }, "height": { "type": "integer", "minimum": 0 }, "meta": { "type": "object", "additionalProperties": true }, "content_type": { "type": "string", "pattern": "^[a-z0-9-/]+$" }, "file_name": { "type": "string", "pattern": "^[a-z0-9-.]+$" } }, "required": ["source_url", "content_type", "last_modified_at"] } }, "required": ["colour_id"], "$id": "https://shushed.example.com/development-colour.schema.json" };
|
|
4
4
|
exports.default = schema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Gift Voucher", "additionalProperties": false, "type": "object", "properties": { "code": { "type": "string" }, "last_modified_at": { "type": "string", "format": "date-time" }, "valid_from": { "type": "string", "format": "date-time" }, "valid_until": { "type": "string", "format": "date-time" }, "
|
|
3
|
+
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Gift Voucher", "additionalProperties": false, "type": "object", "properties": { "code": { "type": "string" }, "last_modified_at": { "type": "string", "format": "date-time" }, "valid_from": { "type": "string", "format": "date-time" }, "valid_until": { "type": "string", "format": "date-time" }, "customer_email": { "type": ["string", "null"], "format": "email", "example": "alice.johnson@example.com" }, "purchased_at": { "type": "string", "format": "date-time" }, "balance": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Money", "type": "object", "additionalProperties": false, "properties": { "value": { "type": "integer", "minimum": 0 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "type": "string", "enum": ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"] }, "lcy_value": { "type": "integer", "minimum": 0 }, "lcy_currency": { "$ref": "#/properties/balance/properties/currency", "title": "LCY Currency" }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "is_physical": { "type": "boolean" }, "has_been_emailed": { "type": "boolean" } }, "required": ["code", "last_modified_at", "valid_from", "valid_until", "customer_email", "purchased_at", "balance", "is_physical", "has_been_emailed"], "$id": "https://shushed.example.com/gift-voucher.schema.json" };
|
|
4
4
|
exports.default = schema;
|