@heavybit/ecommerce-contracts 0.3.13 → 0.3.20
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/base.js +1 -1
- package/dist/cjs/events/base.js.map +1 -1
- package/dist/cjs/events/engagement.js +58 -0
- package/dist/cjs/events/engagement.js.map +1 -0
- package/dist/cjs/events/index.js +3 -0
- package/dist/cjs/events/index.js.map +1 -1
- package/dist/cjs/events/notification.js +9 -2
- package/dist/cjs/events/notification.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 +1 -0
- package/dist/cjs/features.js.map +1 -1
- package/dist/cjs/internal/catalog.js +2 -0
- package/dist/cjs/internal/catalog.js.map +1 -1
- package/dist/cjs/internal/index.js +2 -0
- package/dist/cjs/internal/index.js.map +1 -1
- package/dist/cjs/internal/moderation.js +20 -0
- package/dist/cjs/internal/moderation.js.map +1 -0
- package/dist/cjs/internal/reviews.js +26 -0
- package/dist/cjs/internal/reviews.js.map +1 -0
- package/dist/cjs/permissions.js +4 -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/base.js +1 -1
- package/dist/esm/events/base.js.map +1 -1
- package/dist/esm/events/engagement.js +55 -0
- package/dist/esm/events/engagement.js.map +1 -0
- package/dist/esm/events/index.js +3 -0
- package/dist/esm/events/index.js.map +1 -1
- package/dist/esm/events/notification.js +8 -1
- package/dist/esm/events/notification.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 +1 -0
- package/dist/esm/features.js.map +1 -1
- package/dist/esm/internal/catalog.js +2 -0
- package/dist/esm/internal/catalog.js.map +1 -1
- package/dist/esm/internal/index.js +2 -0
- package/dist/esm/internal/index.js.map +1 -1
- package/dist/esm/internal/moderation.js +17 -0
- package/dist/esm/internal/moderation.js.map +1 -0
- package/dist/esm/internal/reviews.js +23 -0
- package/dist/esm/internal/reviews.js.map +1 -0
- package/dist/esm/permissions.js +4 -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/audit.d.ts +3 -1
- package/dist/types/events/audit.d.ts.map +1 -1
- package/dist/types/events/base.d.ts +1 -1
- package/dist/types/events/base.d.ts.map +1 -1
- package/dist/types/events/engagement.d.ts +196 -0
- package/dist/types/events/engagement.d.ts.map +1 -0
- package/dist/types/events/index.d.ts +888 -49
- package/dist/types/events/index.d.ts.map +1 -1
- package/dist/types/events/notification.d.ts +51 -11
- package/dist/types/events/notification.d.ts.map +1 -1
- 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 +5 -0
- package/dist/types/features.d.ts.map +1 -1
- package/dist/types/internal/catalog.d.ts +24 -0
- package/dist/types/internal/catalog.d.ts.map +1 -1
- package/dist/types/internal/index.d.ts +2 -0
- package/dist/types/internal/index.d.ts.map +1 -1
- package/dist/types/internal/moderation.d.ts +38 -0
- package/dist/types/internal/moderation.d.ts.map +1 -0
- package/dist/types/internal/reviews.d.ts +54 -0
- package/dist/types/internal/reviews.d.ts.map +1 -0
- package/dist/types/permissions.d.ts +4 -0
- package/dist/types/permissions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KA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M,OAAO,aAAa,CAAC;AACzD,6BAA6B;AAC7B,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,eAAe,CAAC;AAC7D,kCAAkC;AAClC,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,eAAe,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvF,kEAAkE;AAClE,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3F,oCAAoC;AACpC,eAAO,MAAM,gBAAgB,0jHAA8D,CAAC;AAE5F;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,UAAU,CAE3D;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAG1F;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;IAExE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAIpE"}
|
|
@@ -16,6 +16,7 @@ export declare const NOTIFICATION_COMMAND_KEYS: {
|
|
|
16
16
|
export declare const NOTIFICATION_EVENT_KEYS: {
|
|
17
17
|
readonly email: {
|
|
18
18
|
readonly suppressed: "notification.email.suppressed";
|
|
19
|
+
readonly unsubscribed: "notification.email.unsubscribed";
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
/** Exchange kind of every key in {@link NOTIFICATION_COMMAND_KEYS} (`enqueueOutbox(..., { exchange })`, consumer bindings). */
|
|
@@ -34,7 +35,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
34
35
|
companyId: z.ZodNullable<z.ZodString>;
|
|
35
36
|
}, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
|
|
36
37
|
template: z.ZodString;
|
|
37
|
-
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")[]]>;
|
|
38
39
|
recipient: z.ZodObject<{
|
|
39
40
|
email: z.ZodString;
|
|
40
41
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -61,7 +62,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
61
62
|
targetPermission: z.ZodOptional<z.ZodString>;
|
|
62
63
|
}, "strip", z.ZodTypeAny, {
|
|
63
64
|
template: string;
|
|
64
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
65
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
65
66
|
recipient: {
|
|
66
67
|
email: string;
|
|
67
68
|
name?: string | undefined;
|
|
@@ -76,7 +77,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
76
77
|
targetPermission?: string | undefined;
|
|
77
78
|
}, {
|
|
78
79
|
template: string;
|
|
79
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
80
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
80
81
|
recipient: {
|
|
81
82
|
email: string;
|
|
82
83
|
name?: string | undefined;
|
|
@@ -91,7 +92,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
91
92
|
targetPermission?: string | undefined;
|
|
92
93
|
}>, {
|
|
93
94
|
template: string;
|
|
94
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
95
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
95
96
|
recipient: {
|
|
96
97
|
email: string;
|
|
97
98
|
name?: string | undefined;
|
|
@@ -106,7 +107,7 @@ export declare const notificationSendRequestedSchema: z.ZodIntersection<z.ZodObj
|
|
|
106
107
|
targetPermission?: string | undefined;
|
|
107
108
|
}, {
|
|
108
109
|
template: string;
|
|
109
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
110
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
110
111
|
recipient: {
|
|
111
112
|
email: string;
|
|
112
113
|
name?: string | undefined;
|
|
@@ -130,7 +131,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
130
131
|
companyId: z.ZodNullable<z.ZodString>;
|
|
131
132
|
}, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
|
|
132
133
|
template: z.ZodString;
|
|
133
|
-
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")[]]>;
|
|
134
135
|
recipient: z.ZodObject<{
|
|
135
136
|
email: z.ZodString;
|
|
136
137
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -157,7 +158,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
157
158
|
targetPermission: z.ZodOptional<z.ZodString>;
|
|
158
159
|
}, "strip", z.ZodTypeAny, {
|
|
159
160
|
template: string;
|
|
160
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
161
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
161
162
|
recipient: {
|
|
162
163
|
email: string;
|
|
163
164
|
name?: string | undefined;
|
|
@@ -172,7 +173,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
172
173
|
targetPermission?: string | undefined;
|
|
173
174
|
}, {
|
|
174
175
|
template: string;
|
|
175
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
176
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
176
177
|
recipient: {
|
|
177
178
|
email: string;
|
|
178
179
|
name?: string | undefined;
|
|
@@ -187,7 +188,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
187
188
|
targetPermission?: string | undefined;
|
|
188
189
|
}>, {
|
|
189
190
|
template: string;
|
|
190
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
191
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
191
192
|
recipient: {
|
|
192
193
|
email: string;
|
|
193
194
|
name?: string | undefined;
|
|
@@ -202,7 +203,7 @@ export declare const NOTIFICATION_COMMANDS: {
|
|
|
202
203
|
targetPermission?: string | undefined;
|
|
203
204
|
}, {
|
|
204
205
|
template: string;
|
|
205
|
-
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
|
|
206
|
+
category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
|
|
206
207
|
recipient: {
|
|
207
208
|
email: string;
|
|
208
209
|
name?: string | undefined;
|
|
@@ -232,6 +233,8 @@ export declare const SOCKET_REJECTED_KEYS: {
|
|
|
232
233
|
readonly cart: "cart.security.socket_rejected";
|
|
233
234
|
readonly notification: "notification.security.socket_rejected";
|
|
234
235
|
readonly reporting: "reporting.security.socket_rejected";
|
|
236
|
+
readonly promotion: "promotion.security.socket_rejected";
|
|
237
|
+
readonly engagement: "engagement.security.socket_rejected";
|
|
235
238
|
};
|
|
236
239
|
/** v1 payload of a rejected socket handshake (no ticket, IP or headers). */
|
|
237
240
|
export declare const socketRejectedSchema: z.ZodObject<{
|
|
@@ -254,7 +257,7 @@ export declare const socketRejectedSchema: z.ZodObject<{
|
|
|
254
257
|
reason: z.ZodString;
|
|
255
258
|
}, z.ZodTypeAny, "passthrough">>;
|
|
256
259
|
/** Every socket-rejected routing key with its schema. */
|
|
257
|
-
export declare const SOCKET_REJECTED_EVENTS: Record<"order.security.socket_rejected" | "payment.security.socket_rejected" | "shipping.security.socket_rejected" | "store.security.socket_rejected" | "auth.security.socket_rejected" | "gateway.security.socket_rejected" | "catalog.security.socket_rejected" | "media.security.socket_rejected" | "cart.security.socket_rejected" | "notification.security.socket_rejected" | "reporting.security.socket_rejected", z.ZodObject<{
|
|
260
|
+
export declare const SOCKET_REJECTED_EVENTS: Record<"order.security.socket_rejected" | "payment.security.socket_rejected" | "shipping.security.socket_rejected" | "store.security.socket_rejected" | "auth.security.socket_rejected" | "gateway.security.socket_rejected" | "catalog.security.socket_rejected" | "media.security.socket_rejected" | "cart.security.socket_rejected" | "notification.security.socket_rejected" | "reporting.security.socket_rejected" | "promotion.security.socket_rejected" | "engagement.security.socket_rejected", z.ZodObject<{
|
|
258
261
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
259
262
|
} & {
|
|
260
263
|
userId: z.ZodNullable<z.ZodString>;
|
|
@@ -288,6 +291,27 @@ export declare const emailSuppressedSchema: z.ZodObject<{
|
|
|
288
291
|
userId: z.ZodString;
|
|
289
292
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
290
293
|
}, z.ZodTypeAny, "passthrough">>;
|
|
294
|
+
/**
|
|
295
|
+
* v1 payload of `notification.email.unsubscribed`: a person spent an unsubscribe link of marketing mail (NOT-8), so email of
|
|
296
|
+
* message type `type` is off for them. `companyId` is the shop whose mail carried the link (null for platform mail); engagement-service
|
|
297
|
+
* withdraws that shop's marketing consent. No address in the event.
|
|
298
|
+
*/
|
|
299
|
+
export declare const emailUnsubscribedSchema: z.ZodObject<{
|
|
300
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
} & {
|
|
302
|
+
userId: z.ZodString;
|
|
303
|
+
type: z.ZodString;
|
|
304
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
305
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
} & {
|
|
307
|
+
userId: z.ZodString;
|
|
308
|
+
type: z.ZodString;
|
|
309
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
310
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
|
+
} & {
|
|
312
|
+
userId: z.ZodString;
|
|
313
|
+
type: z.ZodString;
|
|
314
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
291
315
|
/** Events published by notification-service with their schemas. */
|
|
292
316
|
export declare const NOTIFICATION_EVENTS: {
|
|
293
317
|
readonly "notification.email.suppressed": z.ZodObject<{
|
|
@@ -300,5 +324,21 @@ export declare const NOTIFICATION_EVENTS: {
|
|
|
300
324
|
userId: z.ZodString;
|
|
301
325
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
302
326
|
}, z.ZodTypeAny, "passthrough">>;
|
|
327
|
+
readonly "notification.email.unsubscribed": z.ZodObject<{
|
|
328
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
|
+
} & {
|
|
330
|
+
userId: z.ZodString;
|
|
331
|
+
type: z.ZodString;
|
|
332
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
333
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
334
|
+
} & {
|
|
335
|
+
userId: z.ZodString;
|
|
336
|
+
type: z.ZodString;
|
|
337
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
338
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
+
} & {
|
|
340
|
+
userId: z.ZodString;
|
|
341
|
+
type: z.ZodString;
|
|
342
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
303
343
|
};
|
|
304
344
|
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/events/notification.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAC;AAIzC,sGAAsG;AACtG,eAAO,MAAM,yBAAyB;;;;CAE5B,CAAC;AAEX,uFAAuF;AACvF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/events/notification.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAC;AAIzC,sGAAsG;AACtG,eAAO,MAAM,yBAAyB;;;;CAE5B,CAAC;AAEX,uFAAuF;AACvF,eAAO,MAAM,uBAAuB;;;;;CAE1B,CAAC;AAEX,+HAA+H;AAC/H,eAAO,MAAM,gBAAgB,EAAG,UAAmB,CAAC;AAEpD,qEAAqE;AACrE,eAAO,MAAM,cAAc,EAAG,QAAiB,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;YA0CqsD,CAAC;cAAoC,CAAC;cAA2C,CAAC;gBAA6C,CAAC;;;YAAyE,CAAC;cAAoC,CAAC;cAA2C,CAAC;gBAA6C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA1Cv7D,CAAC;AAEpI,mCAAmC;AACnC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;gBAuC+sD,CAAC;kBAAoC,CAAC;kBAA2C,CAAC;oBAA6C,CAAC;;;gBAAyE,CAAC;kBAAoC,CAAC;kBAA2C,CAAC;oBAA6C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CArChjE,CAAC;AAEX,6FAA6F;AAC7F,eAAO,MAAM,uBAAuB,EAAG,4BAAqC,CAAC;AAE7E,iEAAiE;AACjE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;CAA2C,CAAC;AAE7E,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;gCAI/B,CAAC;AAEH,yDAAyD;AACzD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;iCAAyD,CAAC;AAE7F;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;gCAAuE,CAAC;AAE1G;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;gCAAyE,CAAC;AAE9G,mEAAmE;AACnE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGtB,CAAC"}
|
|
@@ -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,11 @@ 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
|
+
};
|
|
26
31
|
readonly search: {
|
|
27
32
|
readonly default: false;
|
|
28
33
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQgC,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"}
|
|
@@ -88,6 +88,8 @@ export declare const priceQuoteLineSchema: z.ZodObject<{
|
|
|
88
88
|
/** "Was" price shown struck through, or null. */
|
|
89
89
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
90
90
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
91
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
92
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
91
93
|
available: z.ZodBoolean;
|
|
92
94
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
93
95
|
availableQuantity: z.ZodNumber;
|
|
@@ -108,6 +110,8 @@ export declare const priceQuoteLineSchema: z.ZodObject<{
|
|
|
108
110
|
/** "Was" price shown struck through, or null. */
|
|
109
111
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
110
112
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
113
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
114
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
111
115
|
available: z.ZodBoolean;
|
|
112
116
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
113
117
|
availableQuantity: z.ZodNumber;
|
|
@@ -128,6 +132,8 @@ export declare const priceQuoteLineSchema: z.ZodObject<{
|
|
|
128
132
|
/** "Was" price shown struck through, or null. */
|
|
129
133
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
130
134
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
135
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
136
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
131
137
|
available: z.ZodBoolean;
|
|
132
138
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
133
139
|
availableQuantity: z.ZodNumber;
|
|
@@ -153,6 +159,8 @@ export declare const priceQuoteResponseSchema: z.ZodObject<{
|
|
|
153
159
|
/** "Was" price shown struck through, or null. */
|
|
154
160
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
155
161
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
162
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
163
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
156
164
|
available: z.ZodBoolean;
|
|
157
165
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
158
166
|
availableQuantity: z.ZodNumber;
|
|
@@ -173,6 +181,8 @@ export declare const priceQuoteResponseSchema: z.ZodObject<{
|
|
|
173
181
|
/** "Was" price shown struck through, or null. */
|
|
174
182
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
175
183
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
184
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
185
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
176
186
|
available: z.ZodBoolean;
|
|
177
187
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
178
188
|
availableQuantity: z.ZodNumber;
|
|
@@ -193,6 +203,8 @@ export declare const priceQuoteResponseSchema: z.ZodObject<{
|
|
|
193
203
|
/** "Was" price shown struck through, or null. */
|
|
194
204
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
195
205
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
206
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
207
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
196
208
|
available: z.ZodBoolean;
|
|
197
209
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
198
210
|
availableQuantity: z.ZodNumber;
|
|
@@ -217,6 +229,8 @@ export declare const priceQuoteResponseSchema: z.ZodObject<{
|
|
|
217
229
|
/** "Was" price shown struck through, or null. */
|
|
218
230
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
219
231
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
232
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
233
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
220
234
|
available: z.ZodBoolean;
|
|
221
235
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
222
236
|
availableQuantity: z.ZodNumber;
|
|
@@ -237,6 +251,8 @@ export declare const priceQuoteResponseSchema: z.ZodObject<{
|
|
|
237
251
|
/** "Was" price shown struck through, or null. */
|
|
238
252
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
239
253
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
254
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
255
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
240
256
|
available: z.ZodBoolean;
|
|
241
257
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
242
258
|
availableQuantity: z.ZodNumber;
|
|
@@ -257,6 +273,8 @@ export declare const priceQuoteResponseSchema: z.ZodObject<{
|
|
|
257
273
|
/** "Was" price shown struck through, or null. */
|
|
258
274
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
259
275
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
276
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
277
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
260
278
|
available: z.ZodBoolean;
|
|
261
279
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
262
280
|
availableQuantity: z.ZodNumber;
|
|
@@ -281,6 +299,8 @@ export declare const priceQuoteResponseSchema: z.ZodObject<{
|
|
|
281
299
|
/** "Was" price shown struck through, or null. */
|
|
282
300
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
283
301
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
302
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
303
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
284
304
|
available: z.ZodBoolean;
|
|
285
305
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
286
306
|
availableQuantity: z.ZodNumber;
|
|
@@ -301,6 +321,8 @@ export declare const priceQuoteResponseSchema: z.ZodObject<{
|
|
|
301
321
|
/** "Was" price shown struck through, or null. */
|
|
302
322
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
303
323
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
324
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
325
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
304
326
|
available: z.ZodBoolean;
|
|
305
327
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
306
328
|
availableQuantity: z.ZodNumber;
|
|
@@ -321,6 +343,8 @@ export declare const priceQuoteResponseSchema: z.ZodObject<{
|
|
|
321
343
|
/** "Was" price shown struck through, or null. */
|
|
322
344
|
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
323
345
|
taxClass: z.ZodNullable<z.ZodEnum<["standard", "zero_rated", "exempt"]>>;
|
|
346
|
+
/** Every category the product is listed under (main plus extra), so category-scoped coupons can match (CR-21-04). Additive (MS-4): absent from older catalogs. */
|
|
347
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
324
348
|
available: z.ZodBoolean;
|
|
325
349
|
/** Units that can be sold now (stock − reserved, 0 when not sellable). */
|
|
326
350
|
availableQuantity: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/internal/catalog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAY,CAAC,EAAE,MAAM,sBAAsB,CAAC;AAGnD,wCAAwC;AACxC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,sDAAsD;AACtD,eAAO,MAAM,wBAAwB,QAAS,CAAC;AAE/C;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,6GAA8G,CAAC;AAE/I,0CAA0C;AAC1C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,kEAAkE;AAClE,eAAO,MAAM,WAAW,+CAAgD,CAAC;AAEzE,0BAA0B;AAC1B,eAAO,MAAM,2BAA2B;;;;;;;;;EAG7B,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzB,CAAC;AAEZ;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;IAO/B,iDAAiD;;IAEjD,2GAA2G;;IAE3G,8EAA8E;;IAE9E,iDAAiD
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/internal/catalog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAY,CAAC,EAAE,MAAM,sBAAsB,CAAC;AA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gB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal request engagement-service sends catalog-service when the platform upholds a report against a product (Prompt 22.3).
|
|
3
|
+
*/
|
|
4
|
+
import { z } from '@heavybit/shared-lib';
|
|
5
|
+
/**
|
|
6
|
+
* Body of catalog-service `POST /api/v1/internal/products/{id}/disable` (caller engagement-service): turn the product off
|
|
7
|
+
* ("disabled") for every shopper because of a platform moderation decision. The shop comes in the body because the internal
|
|
8
|
+
* caller is trusted, not a user (the product id alone is never enough to find the shop's rows, TEN-2).
|
|
9
|
+
*/
|
|
10
|
+
export declare const productDisableRequestSchema: z.ZodObject<{
|
|
11
|
+
companyId: z.ZodString;
|
|
12
|
+
reason: z.ZodString;
|
|
13
|
+
actorUserId: z.ZodString;
|
|
14
|
+
}, "strict", z.ZodTypeAny, {
|
|
15
|
+
companyId: string;
|
|
16
|
+
actorUserId: string;
|
|
17
|
+
reason: string;
|
|
18
|
+
}, {
|
|
19
|
+
companyId: string;
|
|
20
|
+
actorUserId: string;
|
|
21
|
+
reason: string;
|
|
22
|
+
}>;
|
|
23
|
+
/** Envelope `data` of the disable call: `disabled` is false when the product was already off (idempotent). */
|
|
24
|
+
export declare const productDisableResultSchema: z.ZodObject<{
|
|
25
|
+
productId: z.ZodString;
|
|
26
|
+
disabled: z.ZodBoolean;
|
|
27
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
28
|
+
productId: z.ZodString;
|
|
29
|
+
disabled: z.ZodBoolean;
|
|
30
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
31
|
+
productId: z.ZodString;
|
|
32
|
+
disabled: z.ZodBoolean;
|
|
33
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
34
|
+
/** Request of the product disable call. */
|
|
35
|
+
export type ProductDisableRequest = z.infer<typeof productDisableRequestSchema>;
|
|
36
|
+
/** Answer of the product disable call. */
|
|
37
|
+
export type ProductDisableResult = z.infer<typeof productDisableResultSchema>;
|
|
38
|
+
//# sourceMappingURL=moderation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/internal/moderation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAY,CAAC,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAI7B,CAAC;AAEZ,8GAA8G;AAC9G,eAAO,MAAM,0BAA0B;;;;;;;;;gCAAyE,CAAC;AAEjH,2CAA2C;AAC3C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,0CAA0C;AAC1C,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|