@heavybit/ecommerce-contracts 0.3.16 → 0.3.21
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/app.js +5 -2
- package/dist/cjs/app.js.map +1 -1
- package/dist/cjs/events/engagement.js +6 -0
- package/dist/cjs/events/engagement.js.map +1 -1
- package/dist/cjs/events/order.js +25 -2
- package/dist/cjs/events/order.js.map +1 -1
- package/dist/cjs/features.js +2 -0
- package/dist/cjs/features.js.map +1 -1
- package/dist/cjs/permissions.js +2 -0
- package/dist/cjs/permissions.js.map +1 -1
- package/dist/esm/app.js +5 -2
- package/dist/esm/app.js.map +1 -1
- package/dist/esm/events/engagement.js +7 -1
- package/dist/esm/events/engagement.js.map +1 -1
- package/dist/esm/events/order.js +24 -1
- package/dist/esm/events/order.js.map +1 -1
- package/dist/esm/features.js +2 -0
- package/dist/esm/features.js.map +1 -1
- package/dist/esm/permissions.js +2 -0
- package/dist/esm/permissions.js.map +1 -1
- package/dist/types/app.d.ts +5 -2
- package/dist/types/app.d.ts.map +1 -1
- package/dist/types/events/engagement.d.ts +35 -0
- package/dist/types/events/engagement.d.ts.map +1 -1
- package/dist/types/events/index.d.ts +369 -23
- package/dist/types/events/index.d.ts.map +1 -1
- package/dist/types/events/notification.d.ts +10 -10
- package/dist/types/events/order.d.ts +152 -1
- package/dist/types/events/order.d.ts.map +1 -1
- package/dist/types/events/payment.d.ts +6 -6
- package/dist/types/features.d.ts +10 -0
- package/dist/types/features.d.ts.map +1 -1
- package/dist/types/permissions.d.ts +2 -0
- package/dist/types/permissions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
35
35
|
companyId: z.ZodNullable<z.ZodString>;
|
|
36
36
|
}, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
|
|
37
37
|
template: z.ZodString;
|
|
38
|
-
category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing")[]]>;
|
|
38
|
+
category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing")[]]>;
|
|
39
39
|
recipient: z.ZodObject<{
|
|
40
40
|
email: z.ZodString;
|
|
41
41
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -62,7 +62,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
62
62
|
targetPermission: z.ZodOptional<z.ZodString>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
template: string;
|
|
65
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
65
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
66
66
|
recipient: {
|
|
67
67
|
email: string;
|
|
68
68
|
name?: string | undefined;
|
|
@@ -77,7 +77,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
77
77
|
targetPermission?: string | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
template: string;
|
|
80
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
80
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
81
81
|
recipient: {
|
|
82
82
|
email: string;
|
|
83
83
|
name?: string | undefined;
|
|
@@ -92,7 +92,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
92
92
|
targetPermission?: string | undefined;
|
|
93
93
|
}>, {
|
|
94
94
|
template: string;
|
|
95
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
95
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
96
96
|
recipient: {
|
|
97
97
|
email: string;
|
|
98
98
|
name?: string | undefined;
|
|
@@ -107,7 +107,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
107
107
|
targetPermission?: string | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
template: string;
|
|
110
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
110
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
111
111
|
recipient: {
|
|
112
112
|
email: string;
|
|
113
113
|
name?: string | undefined;
|
|
@@ -131,7 +131,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
131
131
|
companyId: z.ZodNullable<z.ZodString>;
|
|
132
132
|
}, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
|
|
133
133
|
template: z.ZodString;
|
|
134
|
-
category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing")[]]>;
|
|
134
|
+
category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing")[]]>;
|
|
135
135
|
recipient: z.ZodObject<{
|
|
136
136
|
email: z.ZodString;
|
|
137
137
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -158,7 +158,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
158
158
|
targetPermission: z.ZodOptional<z.ZodString>;
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
160
|
template: string;
|
|
161
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
161
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
162
162
|
recipient: {
|
|
163
163
|
email: string;
|
|
164
164
|
name?: string | undefined;
|
|
@@ -173,7 +173,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
173
173
|
targetPermission?: string | undefined;
|
|
174
174
|
}, {
|
|
175
175
|
template: string;
|
|
176
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
176
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
177
177
|
recipient: {
|
|
178
178
|
email: string;
|
|
179
179
|
name?: string | undefined;
|
|
@@ -188,7 +188,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
188
188
|
targetPermission?: string | undefined;
|
|
189
189
|
}>, {
|
|
190
190
|
template: string;
|
|
191
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
191
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
192
192
|
recipient: {
|
|
193
193
|
email: string;
|
|
194
194
|
name?: string | undefined;
|
|
@@ -203,7 +203,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
203
203
|
targetPermission?: string | undefined;
|
|
204
204
|
}, {
|
|
205
205
|
template: string;
|
|
206
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
206
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
207
207
|
recipient: {
|
|
208
208
|
email: string;
|
|
209
209
|
name?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** order-service events: orders
|
|
1
|
+
/** order-service events: orders, order issues and returns. Customer contact details are never in payloads. */
|
|
2
2
|
import { z } from '@heavybit/shared-lib';
|
|
3
3
|
/** Routing keys published by order-service. */
|
|
4
4
|
export declare const ORDER_KEYS: {
|
|
@@ -17,8 +17,19 @@ export declare const ORDER_KEYS: {
|
|
|
17
17
|
readonly replied: "order.issue.replied";
|
|
18
18
|
readonly escalated: "order.issue.escalated";
|
|
19
19
|
readonly resolved: "order.issue.resolved";
|
|
20
|
+
readonly decided: "order.issue.decided";
|
|
21
|
+
};
|
|
22
|
+
readonly return: {
|
|
23
|
+
readonly requested: "order.return.requested";
|
|
24
|
+
readonly approved: "order.return.approved";
|
|
25
|
+
readonly rejected: "order.return.rejected";
|
|
26
|
+
readonly received: "order.return.received";
|
|
20
27
|
};
|
|
21
28
|
};
|
|
29
|
+
/** How the platform ends an escalated issue: refund from the shop's balance, no action, or an instruction to the shop. */
|
|
30
|
+
export declare const ISSUE_DECISION_OUTCOMES: readonly ["refund", "no_action", "instruct"];
|
|
31
|
+
/** What the shop did with a returned line: put it back on sale, or write it off (damaged, unsellable). */
|
|
32
|
+
export declare const RETURN_DISPOSITIONS: readonly ["restock", "write_off"];
|
|
22
33
|
/** v1 payload schemas of the order events. */
|
|
23
34
|
export declare const ORDER_EVENTS: {
|
|
24
35
|
readonly "order.order.created": z.ZodObject<{
|
|
@@ -288,5 +299,145 @@ export declare const ORDER_EVENTS: {
|
|
|
288
299
|
orderId: z.ZodString;
|
|
289
300
|
resolution: z.ZodString;
|
|
290
301
|
}, z.ZodTypeAny, "passthrough">>;
|
|
302
|
+
readonly "order.issue.decided": z.ZodObject<{
|
|
303
|
+
companyId: z.ZodString;
|
|
304
|
+
} & {
|
|
305
|
+
issueId: z.ZodString;
|
|
306
|
+
orderId: z.ZodString;
|
|
307
|
+
outcome: z.ZodEnum<["refund", "no_action", "instruct"]>;
|
|
308
|
+
suspendRequested: z.ZodBoolean;
|
|
309
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
310
|
+
companyId: z.ZodString;
|
|
311
|
+
} & {
|
|
312
|
+
issueId: z.ZodString;
|
|
313
|
+
orderId: z.ZodString;
|
|
314
|
+
outcome: z.ZodEnum<["refund", "no_action", "instruct"]>;
|
|
315
|
+
suspendRequested: z.ZodBoolean;
|
|
316
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
317
|
+
companyId: z.ZodString;
|
|
318
|
+
} & {
|
|
319
|
+
issueId: z.ZodString;
|
|
320
|
+
orderId: z.ZodString;
|
|
321
|
+
outcome: z.ZodEnum<["refund", "no_action", "instruct"]>;
|
|
322
|
+
suspendRequested: z.ZodBoolean;
|
|
323
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
324
|
+
readonly "order.return.requested": z.ZodObject<{
|
|
325
|
+
companyId: z.ZodString;
|
|
326
|
+
} & {
|
|
327
|
+
returnId: z.ZodString;
|
|
328
|
+
orderId: z.ZodString;
|
|
329
|
+
userId: z.ZodString;
|
|
330
|
+
itemCount: z.ZodNumber;
|
|
331
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
332
|
+
companyId: z.ZodString;
|
|
333
|
+
} & {
|
|
334
|
+
returnId: z.ZodString;
|
|
335
|
+
orderId: z.ZodString;
|
|
336
|
+
userId: z.ZodString;
|
|
337
|
+
itemCount: z.ZodNumber;
|
|
338
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
339
|
+
companyId: z.ZodString;
|
|
340
|
+
} & {
|
|
341
|
+
returnId: z.ZodString;
|
|
342
|
+
orderId: z.ZodString;
|
|
343
|
+
userId: z.ZodString;
|
|
344
|
+
itemCount: z.ZodNumber;
|
|
345
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
346
|
+
readonly "order.return.approved": z.ZodObject<{
|
|
347
|
+
companyId: z.ZodString;
|
|
348
|
+
} & {
|
|
349
|
+
returnId: z.ZodString;
|
|
350
|
+
orderId: z.ZodString;
|
|
351
|
+
userId: z.ZodString;
|
|
352
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
353
|
+
companyId: z.ZodString;
|
|
354
|
+
} & {
|
|
355
|
+
returnId: z.ZodString;
|
|
356
|
+
orderId: z.ZodString;
|
|
357
|
+
userId: z.ZodString;
|
|
358
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
359
|
+
companyId: z.ZodString;
|
|
360
|
+
} & {
|
|
361
|
+
returnId: z.ZodString;
|
|
362
|
+
orderId: z.ZodString;
|
|
363
|
+
userId: z.ZodString;
|
|
364
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
365
|
+
readonly "order.return.rejected": z.ZodObject<{
|
|
366
|
+
companyId: z.ZodString;
|
|
367
|
+
} & {
|
|
368
|
+
returnId: z.ZodString;
|
|
369
|
+
orderId: z.ZodString;
|
|
370
|
+
userId: z.ZodString;
|
|
371
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
372
|
+
companyId: z.ZodString;
|
|
373
|
+
} & {
|
|
374
|
+
returnId: z.ZodString;
|
|
375
|
+
orderId: z.ZodString;
|
|
376
|
+
userId: z.ZodString;
|
|
377
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
378
|
+
companyId: z.ZodString;
|
|
379
|
+
} & {
|
|
380
|
+
returnId: z.ZodString;
|
|
381
|
+
orderId: z.ZodString;
|
|
382
|
+
userId: z.ZodString;
|
|
383
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
384
|
+
readonly "order.return.received": z.ZodObject<{
|
|
385
|
+
companyId: z.ZodString;
|
|
386
|
+
} & {
|
|
387
|
+
returnId: z.ZodString;
|
|
388
|
+
orderId: z.ZodString;
|
|
389
|
+
userId: z.ZodString;
|
|
390
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
391
|
+
variantId: z.ZodString;
|
|
392
|
+
quantity: z.ZodNumber;
|
|
393
|
+
disposition: z.ZodEnum<["restock", "write_off"]>;
|
|
394
|
+
}, "strip", z.ZodTypeAny, {
|
|
395
|
+
variantId: string;
|
|
396
|
+
quantity: number;
|
|
397
|
+
disposition: "restock" | "write_off";
|
|
398
|
+
}, {
|
|
399
|
+
variantId: string;
|
|
400
|
+
quantity: number;
|
|
401
|
+
disposition: "restock" | "write_off";
|
|
402
|
+
}>, "many">;
|
|
403
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
404
|
+
companyId: z.ZodString;
|
|
405
|
+
} & {
|
|
406
|
+
returnId: z.ZodString;
|
|
407
|
+
orderId: z.ZodString;
|
|
408
|
+
userId: z.ZodString;
|
|
409
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
410
|
+
variantId: z.ZodString;
|
|
411
|
+
quantity: z.ZodNumber;
|
|
412
|
+
disposition: z.ZodEnum<["restock", "write_off"]>;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
variantId: string;
|
|
415
|
+
quantity: number;
|
|
416
|
+
disposition: "restock" | "write_off";
|
|
417
|
+
}, {
|
|
418
|
+
variantId: string;
|
|
419
|
+
quantity: number;
|
|
420
|
+
disposition: "restock" | "write_off";
|
|
421
|
+
}>, "many">;
|
|
422
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
423
|
+
companyId: z.ZodString;
|
|
424
|
+
} & {
|
|
425
|
+
returnId: z.ZodString;
|
|
426
|
+
orderId: z.ZodString;
|
|
427
|
+
userId: z.ZodString;
|
|
428
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
429
|
+
variantId: z.ZodString;
|
|
430
|
+
quantity: z.ZodNumber;
|
|
431
|
+
disposition: z.ZodEnum<["restock", "write_off"]>;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
variantId: string;
|
|
434
|
+
quantity: number;
|
|
435
|
+
disposition: "restock" | "write_off";
|
|
436
|
+
}, {
|
|
437
|
+
variantId: string;
|
|
438
|
+
quantity: number;
|
|
439
|
+
disposition: "restock" | "write_off";
|
|
440
|
+
}>, "many">;
|
|
441
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
291
442
|
};
|
|
292
443
|
//# sourceMappingURL=order.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/events/order.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/events/order.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAC;AAGzC,+CAA+C;AAC/C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;CAwBb,CAAC;AAEX,0HAA0H;AAC1H,eAAO,MAAM,uBAAuB,8CAA+C,CAAC;AAEpF,0GAA0G;AAC1G,eAAO,MAAM,mBAAmB,mCAAoC,CAAC;AAOrE,8CAA8C;AAC9C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Bf,CAAC"}
|
|
@@ -126,11 +126,11 @@ export declare const PAYMENT_EVENTS: {
|
|
|
126
126
|
orderItemId: z.ZodString;
|
|
127
127
|
quantity: z.ZodNumber;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
orderItemId: string;
|
|
130
129
|
quantity: number;
|
|
131
|
-
}, {
|
|
132
130
|
orderItemId: string;
|
|
131
|
+
}, {
|
|
133
132
|
quantity: number;
|
|
133
|
+
orderItemId: string;
|
|
134
134
|
}>, "many">>;
|
|
135
135
|
includesShipping: z.ZodOptional<z.ZodBoolean>;
|
|
136
136
|
amount: z.ZodString;
|
|
@@ -146,11 +146,11 @@ export declare const PAYMENT_EVENTS: {
|
|
|
146
146
|
orderItemId: z.ZodString;
|
|
147
147
|
quantity: z.ZodNumber;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
orderItemId: string;
|
|
150
149
|
quantity: number;
|
|
151
|
-
}, {
|
|
152
150
|
orderItemId: string;
|
|
151
|
+
}, {
|
|
153
152
|
quantity: number;
|
|
153
|
+
orderItemId: string;
|
|
154
154
|
}>, "many">>;
|
|
155
155
|
includesShipping: z.ZodOptional<z.ZodBoolean>;
|
|
156
156
|
amount: z.ZodString;
|
|
@@ -166,11 +166,11 @@ export declare const PAYMENT_EVENTS: {
|
|
|
166
166
|
orderItemId: z.ZodString;
|
|
167
167
|
quantity: z.ZodNumber;
|
|
168
168
|
}, "strip", z.ZodTypeAny, {
|
|
169
|
-
orderItemId: string;
|
|
170
169
|
quantity: number;
|
|
171
|
-
}, {
|
|
172
170
|
orderItemId: string;
|
|
171
|
+
}, {
|
|
173
172
|
quantity: number;
|
|
173
|
+
orderItemId: string;
|
|
174
174
|
}>, "many">>;
|
|
175
175
|
includesShipping: z.ZodOptional<z.ZodBoolean>;
|
|
176
176
|
amount: z.ZodString;
|
package/dist/types/features.d.ts
CHANGED
|
@@ -23,6 +23,16 @@ export declare const FEATURE_FLAGS: {
|
|
|
23
23
|
readonly phase: "P2";
|
|
24
24
|
readonly description: "Reviews, wishlists and back-in-stock alerts (engagement-service)";
|
|
25
25
|
};
|
|
26
|
+
readonly returns: {
|
|
27
|
+
readonly default: false;
|
|
28
|
+
readonly phase: "P2";
|
|
29
|
+
readonly description: "Customer return requests and shop return handling (order-service)";
|
|
30
|
+
};
|
|
31
|
+
readonly marketing: {
|
|
32
|
+
readonly default: false;
|
|
33
|
+
readonly phase: "P2";
|
|
34
|
+
readonly description: "Marketing tool connection, analytics tags and customer segments (engagement-service, store-service)";
|
|
35
|
+
};
|
|
26
36
|
readonly search: {
|
|
27
37
|
readonly default: false;
|
|
28
38
|
readonly phase: "P2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../src/features.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAC;AAEzC,gFAAgF;AAChF,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,qGAAqG;AACrG,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../src/features.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAC;AAEzC,gFAAgF;AAChF,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,qGAAqG;AACrG,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASgC,CAAC;AAE3D,qBAAqB;AACrB,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AAEzD,sCAAsC;AACtC,eAAO,MAAM,kBAAkB,EAAiC,CAAC,eAAe,EAAE,GAAG,eAAe,EAAE,CAAC,CAAC;AAExG,kHAAkH;AAClH,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAE5E,CAAC;AAEF,iHAAiH;AACjH,eAAO,MAAM,wBAAwB;;;;;;EAE1B,CAAC;AAEZ,oBAAoB;AACpB,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -58,6 +58,8 @@ export declare const PERMISSIONS: {
|
|
|
58
58
|
readonly platformSupportAccess: "platform:support:access";
|
|
59
59
|
/** Decide content reports (hide a review, disable a product platform-wide, dismiss): trust and safety (22.3). */
|
|
60
60
|
readonly platformModerationManage: "platform:moderation:manage";
|
|
61
|
+
/** Decide escalated order issues: refund from the shop's balance, instruct the shop, or close with no action (23.3). */
|
|
62
|
+
readonly platformIssuesManage: "platform:issues:manage";
|
|
61
63
|
};
|
|
62
64
|
export type PermissionName = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
|
|
63
65
|
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/permissions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,yFAAyF;AACzF,eAAO,MAAM,mBAAmB,EAAG,4BAAqC,CAAC;AAEzE,mEAAmE;AACnE,eAAO,MAAM,oBAAoB,EAAG,aAAsB,CAAC;AAE3D,8HAA8H;AAC9H,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,iEAAiE;AACjE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+CtB,iHAAiH;;
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/permissions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,yFAAyF;AACzF,eAAO,MAAM,mBAAmB,EAAG,4BAAqC,CAAC;AAEzE,mEAAmE;AACnE,eAAO,MAAM,oBAAoB,EAAG,aAAsB,CAAC;AAE3D,8HAA8H;AAC9H,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,iEAAiE;AACjE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+CtB,iHAAiH;;IAEjH,wHAAwH;;CAEhH,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heavybit/ecommerce-contracts",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"description": "The e-commerce app's shared contracts: app settings, identity and scope bindings, step-up scopes, event catalogue and v1 payload schemas. Built on @heavybit/shared-lib; no business logic.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|