@voyant-travel/commerce 0.1.0 → 0.2.0
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/markets/routes.d.ts +30 -30
- package/dist/markets/schema.d.ts +1 -1
- package/dist/markets/service-core.d.ts +5 -5
- package/dist/markets/service-rules.d.ts +5 -5
- package/dist/markets/validation.d.ts +5 -5
- package/dist/pricing/routes-core.d.ts +28 -28
- package/dist/pricing/routes-rules.d.ts +30 -30
- package/dist/pricing/schema-categories.d.ts +1 -1
- package/dist/pricing/schema-option-rules.d.ts +1 -1
- package/dist/pricing/service-catalogs.d.ts +3 -3
- package/dist/pricing/service-categories.d.ts +5 -5
- package/dist/pricing/service-departure-overrides.d.ts +1 -1
- package/dist/pricing/service-option-rules.d.ts +14 -14
- package/dist/pricing/service-policies.d.ts +2 -2
- package/dist/pricing/service-transfer-rules.d.ts +3 -3
- package/dist/pricing/validation-public.d.ts +6 -6
- package/dist/pricing/validation.d.ts +7 -7
- package/dist/promotions/routes.d.ts +59 -59
- package/dist/promotions/validation.d.ts +2 -2
- package/dist/sellability/routes.d.ts +106 -106
- package/dist/sellability/schema.d.ts +4 -4
- package/dist/sellability/service-records.d.ts +19 -19
- package/dist/sellability/service-resolve.d.ts +1 -1
- package/dist/sellability/service-snapshots.d.ts +5 -5
- package/dist/sellability/service.d.ts +128 -128
- package/dist/sellability/validation.d.ts +20 -20
- package/package.json +5 -5
|
@@ -8,8 +8,8 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
8
8
|
listPolicies(db: PostgresJsDatabase, query: {
|
|
9
9
|
limit: number;
|
|
10
10
|
offset: number;
|
|
11
|
-
scope?: "
|
|
12
|
-
policyType?: "
|
|
11
|
+
scope?: "channel" | "market" | "global" | "product" | "option" | undefined;
|
|
12
|
+
policyType?: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window" | undefined;
|
|
13
13
|
productId?: string | undefined;
|
|
14
14
|
optionId?: string | undefined;
|
|
15
15
|
marketId?: string | undefined;
|
|
@@ -19,8 +19,8 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
19
19
|
data: {
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
|
-
scope: "
|
|
23
|
-
policyType: "
|
|
22
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
23
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
24
24
|
productId: string | null;
|
|
25
25
|
optionId: string | null;
|
|
26
26
|
marketId: string | null;
|
|
@@ -41,8 +41,8 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
41
41
|
getPolicyById(db: PostgresJsDatabase, id: string): Promise<{
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
|
-
scope: "
|
|
45
|
-
policyType: "
|
|
44
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
45
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
46
46
|
productId: string | null;
|
|
47
47
|
optionId: string | null;
|
|
48
48
|
marketId: string | null;
|
|
@@ -58,8 +58,8 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
58
58
|
} | null>;
|
|
59
59
|
createPolicy(db: PostgresJsDatabase, data: {
|
|
60
60
|
name: string;
|
|
61
|
-
scope: "
|
|
62
|
-
policyType: "
|
|
61
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
62
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
63
63
|
priority: number;
|
|
64
64
|
active: boolean;
|
|
65
65
|
conditions: Record<string, unknown>;
|
|
@@ -71,27 +71,27 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
71
71
|
notes?: string | null | undefined;
|
|
72
72
|
metadata?: Record<string, unknown> | null | undefined;
|
|
73
73
|
}): Promise<{
|
|
74
|
-
id: string;
|
|
75
|
-
active: boolean;
|
|
76
74
|
metadata: Record<string, unknown> | null;
|
|
75
|
+
id: string;
|
|
77
76
|
name: string;
|
|
78
77
|
createdAt: Date;
|
|
78
|
+
priority: number;
|
|
79
|
+
effects: Record<string, unknown>;
|
|
79
80
|
updatedAt: Date;
|
|
80
|
-
|
|
81
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
81
82
|
notes: string | null;
|
|
82
|
-
|
|
83
|
+
active: boolean;
|
|
84
|
+
marketId: string | null;
|
|
83
85
|
productId: string | null;
|
|
84
86
|
optionId: string | null;
|
|
85
87
|
channelId: string | null;
|
|
86
|
-
policyType: "
|
|
87
|
-
scope: "market" | "channel" | "global" | "product" | "option";
|
|
88
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
88
89
|
conditions: Record<string, unknown>;
|
|
89
|
-
effects: Record<string, unknown>;
|
|
90
90
|
} | null>;
|
|
91
91
|
updatePolicy(db: PostgresJsDatabase, id: string, data: {
|
|
92
92
|
name?: string | undefined;
|
|
93
|
-
scope?: "
|
|
94
|
-
policyType?: "
|
|
93
|
+
scope?: "channel" | "market" | "global" | "product" | "option" | undefined;
|
|
94
|
+
policyType?: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window" | undefined;
|
|
95
95
|
productId?: string | null | undefined;
|
|
96
96
|
optionId?: string | null | undefined;
|
|
97
97
|
marketId?: string | null | undefined;
|
|
@@ -105,8 +105,8 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
105
105
|
}): Promise<{
|
|
106
106
|
id: string;
|
|
107
107
|
name: string;
|
|
108
|
-
scope: "
|
|
109
|
-
policyType: "
|
|
108
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
109
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
110
110
|
productId: string | null;
|
|
111
111
|
optionId: string | null;
|
|
112
112
|
marketId: string | null;
|
|
@@ -129,7 +129,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
129
129
|
snapshotId?: string | undefined;
|
|
130
130
|
snapshotItemId?: string | undefined;
|
|
131
131
|
policyId?: string | undefined;
|
|
132
|
-
status?: "blocked" | "
|
|
132
|
+
status?: "blocked" | "warning" | "passed" | "adjusted" | undefined;
|
|
133
133
|
}): Promise<{
|
|
134
134
|
data: {
|
|
135
135
|
id: string;
|
|
@@ -137,7 +137,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
137
137
|
snapshotItemId: string | null;
|
|
138
138
|
policyId: string | null;
|
|
139
139
|
candidateIndex: number;
|
|
140
|
-
status: "blocked" | "
|
|
140
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
141
141
|
message: string | null;
|
|
142
142
|
details: Record<string, unknown> | null;
|
|
143
143
|
createdAt: Date;
|
|
@@ -152,7 +152,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
152
152
|
snapshotItemId: string | null;
|
|
153
153
|
policyId: string | null;
|
|
154
154
|
candidateIndex: number;
|
|
155
|
-
status: "blocked" | "
|
|
155
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
156
156
|
message: string | null;
|
|
157
157
|
details: Record<string, unknown> | null;
|
|
158
158
|
createdAt: Date;
|
|
@@ -160,28 +160,28 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
160
160
|
createPolicyResult(db: PostgresJsDatabase, data: {
|
|
161
161
|
snapshotId: string;
|
|
162
162
|
candidateIndex: number;
|
|
163
|
-
status: "blocked" | "
|
|
163
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
164
164
|
snapshotItemId?: string | null | undefined;
|
|
165
165
|
policyId?: string | null | undefined;
|
|
166
166
|
message?: string | null | undefined;
|
|
167
167
|
details?: Record<string, unknown> | null | undefined;
|
|
168
168
|
}): Promise<{
|
|
169
|
-
id: string;
|
|
170
|
-
status: "blocked" | "passed" | "warning" | "adjusted";
|
|
171
|
-
snapshotId: string;
|
|
172
169
|
message: string | null;
|
|
170
|
+
id: string;
|
|
171
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
173
172
|
createdAt: Date;
|
|
173
|
+
details: Record<string, unknown> | null;
|
|
174
|
+
snapshotId: string;
|
|
174
175
|
candidateIndex: number;
|
|
175
176
|
snapshotItemId: string | null;
|
|
176
177
|
policyId: string | null;
|
|
177
|
-
details: Record<string, unknown> | null;
|
|
178
178
|
} | null>;
|
|
179
179
|
updatePolicyResult(db: PostgresJsDatabase, id: string, data: {
|
|
180
180
|
snapshotId?: string | undefined;
|
|
181
181
|
snapshotItemId?: string | null | undefined;
|
|
182
182
|
policyId?: string | null | undefined;
|
|
183
183
|
candidateIndex?: number | undefined;
|
|
184
|
-
status?: "blocked" | "
|
|
184
|
+
status?: "blocked" | "warning" | "passed" | "adjusted" | undefined;
|
|
185
185
|
message?: string | null | undefined;
|
|
186
186
|
details?: Record<string, unknown> | null | undefined;
|
|
187
187
|
}): Promise<{
|
|
@@ -190,7 +190,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
190
190
|
snapshotItemId: string | null;
|
|
191
191
|
policyId: string | null;
|
|
192
192
|
candidateIndex: number;
|
|
193
|
-
status: "blocked" | "
|
|
193
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
194
194
|
message: string | null;
|
|
195
195
|
details: Record<string, unknown> | null;
|
|
196
196
|
createdAt: Date;
|
|
@@ -203,13 +203,13 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
203
203
|
offset: number;
|
|
204
204
|
offerId?: string | undefined;
|
|
205
205
|
snapshotId?: string | undefined;
|
|
206
|
-
status?: "
|
|
206
|
+
status?: "failed" | "pending" | "running" | "completed" | "expired" | undefined;
|
|
207
207
|
}): Promise<{
|
|
208
208
|
data: {
|
|
209
209
|
id: string;
|
|
210
210
|
offerId: string;
|
|
211
211
|
snapshotId: string | null;
|
|
212
|
-
status: "
|
|
212
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
213
213
|
startedAt: Date;
|
|
214
214
|
completedAt: Date | null;
|
|
215
215
|
notes: string | null;
|
|
@@ -225,7 +225,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
225
225
|
id: string;
|
|
226
226
|
offerId: string;
|
|
227
227
|
snapshotId: string | null;
|
|
228
|
-
status: "
|
|
228
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
229
229
|
startedAt: Date;
|
|
230
230
|
completedAt: Date | null;
|
|
231
231
|
notes: string | null;
|
|
@@ -235,28 +235,28 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
235
235
|
} | null>;
|
|
236
236
|
createOfferRefreshRun(db: PostgresJsDatabase, data: {
|
|
237
237
|
offerId: string;
|
|
238
|
-
status: "
|
|
238
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
239
239
|
snapshotId?: string | null | undefined;
|
|
240
240
|
startedAt?: string | null | undefined;
|
|
241
241
|
completedAt?: string | null | undefined;
|
|
242
242
|
notes?: string | null | undefined;
|
|
243
243
|
metadata?: Record<string, unknown> | null | undefined;
|
|
244
244
|
}): Promise<{
|
|
245
|
-
id: string;
|
|
246
|
-
status: "expired" | "pending" | "running" | "completed" | "failed";
|
|
247
|
-
snapshotId: string | null;
|
|
248
245
|
metadata: Record<string, unknown> | null;
|
|
246
|
+
id: string;
|
|
247
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
249
248
|
createdAt: Date;
|
|
249
|
+
startedAt: Date;
|
|
250
250
|
updatedAt: Date;
|
|
251
251
|
notes: string | null;
|
|
252
|
-
offerId: string;
|
|
253
|
-
startedAt: Date;
|
|
254
252
|
completedAt: Date | null;
|
|
253
|
+
snapshotId: string | null;
|
|
254
|
+
offerId: string;
|
|
255
255
|
} | null>;
|
|
256
256
|
updateOfferRefreshRun(db: PostgresJsDatabase, id: string, data: {
|
|
257
257
|
offerId?: string | undefined;
|
|
258
258
|
snapshotId?: string | null | undefined;
|
|
259
|
-
status?: "
|
|
259
|
+
status?: "failed" | "pending" | "running" | "completed" | "expired" | undefined;
|
|
260
260
|
startedAt?: string | null | undefined;
|
|
261
261
|
completedAt?: string | null | undefined;
|
|
262
262
|
notes?: string | null | undefined;
|
|
@@ -265,7 +265,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
265
265
|
id: string;
|
|
266
266
|
offerId: string;
|
|
267
267
|
snapshotId: string | null;
|
|
268
|
-
status: "
|
|
268
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
269
269
|
startedAt: Date;
|
|
270
270
|
completedAt: Date | null;
|
|
271
271
|
notes: string | null;
|
|
@@ -281,7 +281,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
281
281
|
offset: number;
|
|
282
282
|
offerId?: string | undefined;
|
|
283
283
|
snapshotId?: string | undefined;
|
|
284
|
-
status?: "
|
|
284
|
+
status?: "cancelled" | "expired" | "scheduled" | "superseded" | undefined;
|
|
285
285
|
}): Promise<{
|
|
286
286
|
data: {
|
|
287
287
|
id: string;
|
|
@@ -289,7 +289,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
289
289
|
snapshotId: string | null;
|
|
290
290
|
expiresAt: Date;
|
|
291
291
|
expiredAt: Date | null;
|
|
292
|
-
status: "
|
|
292
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
293
293
|
reason: string | null;
|
|
294
294
|
metadata: Record<string, unknown> | null;
|
|
295
295
|
createdAt: Date;
|
|
@@ -305,7 +305,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
305
305
|
snapshotId: string | null;
|
|
306
306
|
expiresAt: Date;
|
|
307
307
|
expiredAt: Date | null;
|
|
308
|
-
status: "
|
|
308
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
309
309
|
reason: string | null;
|
|
310
310
|
metadata: Record<string, unknown> | null;
|
|
311
311
|
createdAt: Date;
|
|
@@ -314,29 +314,29 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
314
314
|
createOfferExpirationEvent(db: PostgresJsDatabase, data: {
|
|
315
315
|
offerId: string;
|
|
316
316
|
expiresAt: string;
|
|
317
|
-
status: "
|
|
317
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
318
318
|
snapshotId?: string | null | undefined;
|
|
319
319
|
expiredAt?: string | null | undefined;
|
|
320
320
|
reason?: string | null | undefined;
|
|
321
321
|
metadata?: Record<string, unknown> | null | undefined;
|
|
322
322
|
}): Promise<{
|
|
323
|
-
id: string;
|
|
324
|
-
status: "superseded" | "cancelled" | "scheduled" | "expired";
|
|
325
|
-
reason: string | null;
|
|
326
|
-
snapshotId: string | null;
|
|
327
323
|
metadata: Record<string, unknown> | null;
|
|
324
|
+
id: string;
|
|
325
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
328
326
|
createdAt: Date;
|
|
329
327
|
updatedAt: Date;
|
|
330
|
-
offerId: string;
|
|
331
328
|
expiresAt: Date;
|
|
329
|
+
reason: string | null;
|
|
330
|
+
snapshotId: string | null;
|
|
332
331
|
expiredAt: Date | null;
|
|
332
|
+
offerId: string;
|
|
333
333
|
} | null>;
|
|
334
334
|
updateOfferExpirationEvent(db: PostgresJsDatabase, id: string, data: {
|
|
335
335
|
offerId?: string | undefined;
|
|
336
336
|
snapshotId?: string | null | undefined;
|
|
337
337
|
expiresAt?: string | undefined;
|
|
338
338
|
expiredAt?: string | null | undefined;
|
|
339
|
-
status?: "
|
|
339
|
+
status?: "cancelled" | "expired" | "scheduled" | "superseded" | undefined;
|
|
340
340
|
reason?: string | null | undefined;
|
|
341
341
|
metadata?: Record<string, unknown> | null | undefined;
|
|
342
342
|
}): Promise<{
|
|
@@ -345,7 +345,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
345
345
|
snapshotId: string | null;
|
|
346
346
|
expiresAt: Date;
|
|
347
347
|
expiredAt: Date | null;
|
|
348
|
-
status: "
|
|
348
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
349
349
|
reason: string | null;
|
|
350
350
|
metadata: Record<string, unknown> | null;
|
|
351
351
|
createdAt: Date;
|
|
@@ -359,14 +359,14 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
359
359
|
offset: number;
|
|
360
360
|
snapshotId?: string | undefined;
|
|
361
361
|
snapshotItemId?: string | undefined;
|
|
362
|
-
explanationType?: "pricing" | "blocked" | "
|
|
362
|
+
explanationType?: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment" | undefined;
|
|
363
363
|
}): Promise<{
|
|
364
364
|
data: {
|
|
365
365
|
id: string;
|
|
366
366
|
snapshotId: string;
|
|
367
367
|
snapshotItemId: string | null;
|
|
368
368
|
candidateIndex: number;
|
|
369
|
-
explanationType: "pricing" | "blocked" | "
|
|
369
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
370
370
|
code: string | null;
|
|
371
371
|
message: string;
|
|
372
372
|
details: Record<string, unknown> | null;
|
|
@@ -381,7 +381,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
381
381
|
snapshotId: string;
|
|
382
382
|
snapshotItemId: string | null;
|
|
383
383
|
candidateIndex: number;
|
|
384
|
-
explanationType: "pricing" | "blocked" | "
|
|
384
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
385
385
|
code: string | null;
|
|
386
386
|
message: string;
|
|
387
387
|
details: Record<string, unknown> | null;
|
|
@@ -390,27 +390,27 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
390
390
|
createExplanation(db: PostgresJsDatabase, data: {
|
|
391
391
|
snapshotId: string;
|
|
392
392
|
candidateIndex: number;
|
|
393
|
-
explanationType: "pricing" | "blocked" | "
|
|
393
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
394
394
|
message: string;
|
|
395
395
|
snapshotItemId?: string | null | undefined;
|
|
396
396
|
code?: string | null | undefined;
|
|
397
397
|
details?: Record<string, unknown> | null | undefined;
|
|
398
398
|
}): Promise<{
|
|
399
|
+
message: string;
|
|
399
400
|
id: string;
|
|
401
|
+
createdAt: Date;
|
|
400
402
|
code: string | null;
|
|
403
|
+
details: Record<string, unknown> | null;
|
|
401
404
|
snapshotId: string;
|
|
402
|
-
message: string;
|
|
403
|
-
createdAt: Date;
|
|
404
405
|
candidateIndex: number;
|
|
405
406
|
snapshotItemId: string | null;
|
|
406
|
-
|
|
407
|
-
explanationType: "pricing" | "blocked" | "sellable" | "policy" | "pickup" | "allotment" | "warning";
|
|
407
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
408
408
|
} | null>;
|
|
409
409
|
updateExplanation(db: PostgresJsDatabase, id: string, data: {
|
|
410
410
|
snapshotId?: string | undefined;
|
|
411
411
|
snapshotItemId?: string | null | undefined;
|
|
412
412
|
candidateIndex?: number | undefined;
|
|
413
|
-
explanationType?: "pricing" | "blocked" | "
|
|
413
|
+
explanationType?: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment" | undefined;
|
|
414
414
|
code?: string | null | undefined;
|
|
415
415
|
message?: string | undefined;
|
|
416
416
|
details?: Record<string, unknown> | null | undefined;
|
|
@@ -419,7 +419,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
419
419
|
snapshotId: string;
|
|
420
420
|
snapshotItemId: string | null;
|
|
421
421
|
candidateIndex: number;
|
|
422
|
-
explanationType: "pricing" | "blocked" | "
|
|
422
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
423
423
|
code: string | null;
|
|
424
424
|
message: string;
|
|
425
425
|
details: Record<string, unknown> | null;
|
|
@@ -434,14 +434,14 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
434
434
|
status: "expired" | "resolved" | "offer_constructed";
|
|
435
435
|
createdAt: Date;
|
|
436
436
|
updatedAt: Date;
|
|
437
|
+
expiresAt: Date | null;
|
|
437
438
|
marketId: string | null;
|
|
438
439
|
fxRateSetId: string | null;
|
|
439
440
|
productId: string | null;
|
|
440
441
|
optionId: string | null;
|
|
441
442
|
channelId: string | null;
|
|
442
|
-
offerId: string | null;
|
|
443
443
|
slotId: string | null;
|
|
444
|
-
|
|
444
|
+
offerId: string | null;
|
|
445
445
|
requestedCurrencyCode: string | null;
|
|
446
446
|
sourceCurrencyCode: string | null;
|
|
447
447
|
queryPayload: Record<string, unknown>;
|
|
@@ -479,7 +479,7 @@ export declare function createSellabilityService(_options?: SellabilityServiceOp
|
|
|
479
479
|
} | null;
|
|
480
480
|
channel: {
|
|
481
481
|
id: string;
|
|
482
|
-
kind: "direct" | "reseller" | "
|
|
482
|
+
kind: "direct" | "reseller" | "connect" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
483
483
|
} | null;
|
|
484
484
|
sellability: {
|
|
485
485
|
mode: "unavailable" | "sellable" | "on_request";
|
|
@@ -524,8 +524,8 @@ export declare const sellabilityService: {
|
|
|
524
524
|
listPolicies(db: PostgresJsDatabase, query: {
|
|
525
525
|
limit: number;
|
|
526
526
|
offset: number;
|
|
527
|
-
scope?: "
|
|
528
|
-
policyType?: "
|
|
527
|
+
scope?: "channel" | "market" | "global" | "product" | "option" | undefined;
|
|
528
|
+
policyType?: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window" | undefined;
|
|
529
529
|
productId?: string | undefined;
|
|
530
530
|
optionId?: string | undefined;
|
|
531
531
|
marketId?: string | undefined;
|
|
@@ -535,8 +535,8 @@ export declare const sellabilityService: {
|
|
|
535
535
|
data: {
|
|
536
536
|
id: string;
|
|
537
537
|
name: string;
|
|
538
|
-
scope: "
|
|
539
|
-
policyType: "
|
|
538
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
539
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
540
540
|
productId: string | null;
|
|
541
541
|
optionId: string | null;
|
|
542
542
|
marketId: string | null;
|
|
@@ -557,8 +557,8 @@ export declare const sellabilityService: {
|
|
|
557
557
|
getPolicyById(db: PostgresJsDatabase, id: string): Promise<{
|
|
558
558
|
id: string;
|
|
559
559
|
name: string;
|
|
560
|
-
scope: "
|
|
561
|
-
policyType: "
|
|
560
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
561
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
562
562
|
productId: string | null;
|
|
563
563
|
optionId: string | null;
|
|
564
564
|
marketId: string | null;
|
|
@@ -574,8 +574,8 @@ export declare const sellabilityService: {
|
|
|
574
574
|
} | null>;
|
|
575
575
|
createPolicy(db: PostgresJsDatabase, data: {
|
|
576
576
|
name: string;
|
|
577
|
-
scope: "
|
|
578
|
-
policyType: "
|
|
577
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
578
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
579
579
|
priority: number;
|
|
580
580
|
active: boolean;
|
|
581
581
|
conditions: Record<string, unknown>;
|
|
@@ -587,27 +587,27 @@ export declare const sellabilityService: {
|
|
|
587
587
|
notes?: string | null | undefined;
|
|
588
588
|
metadata?: Record<string, unknown> | null | undefined;
|
|
589
589
|
}): Promise<{
|
|
590
|
-
id: string;
|
|
591
|
-
active: boolean;
|
|
592
590
|
metadata: Record<string, unknown> | null;
|
|
591
|
+
id: string;
|
|
593
592
|
name: string;
|
|
594
593
|
createdAt: Date;
|
|
594
|
+
priority: number;
|
|
595
|
+
effects: Record<string, unknown>;
|
|
595
596
|
updatedAt: Date;
|
|
596
|
-
|
|
597
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
597
598
|
notes: string | null;
|
|
598
|
-
|
|
599
|
+
active: boolean;
|
|
600
|
+
marketId: string | null;
|
|
599
601
|
productId: string | null;
|
|
600
602
|
optionId: string | null;
|
|
601
603
|
channelId: string | null;
|
|
602
|
-
policyType: "
|
|
603
|
-
scope: "market" | "channel" | "global" | "product" | "option";
|
|
604
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
604
605
|
conditions: Record<string, unknown>;
|
|
605
|
-
effects: Record<string, unknown>;
|
|
606
606
|
} | null>;
|
|
607
607
|
updatePolicy(db: PostgresJsDatabase, id: string, data: {
|
|
608
608
|
name?: string | undefined;
|
|
609
|
-
scope?: "
|
|
610
|
-
policyType?: "
|
|
609
|
+
scope?: "channel" | "market" | "global" | "product" | "option" | undefined;
|
|
610
|
+
policyType?: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window" | undefined;
|
|
611
611
|
productId?: string | null | undefined;
|
|
612
612
|
optionId?: string | null | undefined;
|
|
613
613
|
marketId?: string | null | undefined;
|
|
@@ -621,8 +621,8 @@ export declare const sellabilityService: {
|
|
|
621
621
|
}): Promise<{
|
|
622
622
|
id: string;
|
|
623
623
|
name: string;
|
|
624
|
-
scope: "
|
|
625
|
-
policyType: "
|
|
624
|
+
scope: "channel" | "market" | "global" | "product" | "option";
|
|
625
|
+
policyType: "custom" | "currency" | "pickup" | "capability" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
626
626
|
productId: string | null;
|
|
627
627
|
optionId: string | null;
|
|
628
628
|
marketId: string | null;
|
|
@@ -645,7 +645,7 @@ export declare const sellabilityService: {
|
|
|
645
645
|
snapshotId?: string | undefined;
|
|
646
646
|
snapshotItemId?: string | undefined;
|
|
647
647
|
policyId?: string | undefined;
|
|
648
|
-
status?: "blocked" | "
|
|
648
|
+
status?: "blocked" | "warning" | "passed" | "adjusted" | undefined;
|
|
649
649
|
}): Promise<{
|
|
650
650
|
data: {
|
|
651
651
|
id: string;
|
|
@@ -653,7 +653,7 @@ export declare const sellabilityService: {
|
|
|
653
653
|
snapshotItemId: string | null;
|
|
654
654
|
policyId: string | null;
|
|
655
655
|
candidateIndex: number;
|
|
656
|
-
status: "blocked" | "
|
|
656
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
657
657
|
message: string | null;
|
|
658
658
|
details: Record<string, unknown> | null;
|
|
659
659
|
createdAt: Date;
|
|
@@ -668,7 +668,7 @@ export declare const sellabilityService: {
|
|
|
668
668
|
snapshotItemId: string | null;
|
|
669
669
|
policyId: string | null;
|
|
670
670
|
candidateIndex: number;
|
|
671
|
-
status: "blocked" | "
|
|
671
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
672
672
|
message: string | null;
|
|
673
673
|
details: Record<string, unknown> | null;
|
|
674
674
|
createdAt: Date;
|
|
@@ -676,28 +676,28 @@ export declare const sellabilityService: {
|
|
|
676
676
|
createPolicyResult(db: PostgresJsDatabase, data: {
|
|
677
677
|
snapshotId: string;
|
|
678
678
|
candidateIndex: number;
|
|
679
|
-
status: "blocked" | "
|
|
679
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
680
680
|
snapshotItemId?: string | null | undefined;
|
|
681
681
|
policyId?: string | null | undefined;
|
|
682
682
|
message?: string | null | undefined;
|
|
683
683
|
details?: Record<string, unknown> | null | undefined;
|
|
684
684
|
}): Promise<{
|
|
685
|
-
id: string;
|
|
686
|
-
status: "blocked" | "passed" | "warning" | "adjusted";
|
|
687
|
-
snapshotId: string;
|
|
688
685
|
message: string | null;
|
|
686
|
+
id: string;
|
|
687
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
689
688
|
createdAt: Date;
|
|
689
|
+
details: Record<string, unknown> | null;
|
|
690
|
+
snapshotId: string;
|
|
690
691
|
candidateIndex: number;
|
|
691
692
|
snapshotItemId: string | null;
|
|
692
693
|
policyId: string | null;
|
|
693
|
-
details: Record<string, unknown> | null;
|
|
694
694
|
} | null>;
|
|
695
695
|
updatePolicyResult(db: PostgresJsDatabase, id: string, data: {
|
|
696
696
|
snapshotId?: string | undefined;
|
|
697
697
|
snapshotItemId?: string | null | undefined;
|
|
698
698
|
policyId?: string | null | undefined;
|
|
699
699
|
candidateIndex?: number | undefined;
|
|
700
|
-
status?: "blocked" | "
|
|
700
|
+
status?: "blocked" | "warning" | "passed" | "adjusted" | undefined;
|
|
701
701
|
message?: string | null | undefined;
|
|
702
702
|
details?: Record<string, unknown> | null | undefined;
|
|
703
703
|
}): Promise<{
|
|
@@ -706,7 +706,7 @@ export declare const sellabilityService: {
|
|
|
706
706
|
snapshotItemId: string | null;
|
|
707
707
|
policyId: string | null;
|
|
708
708
|
candidateIndex: number;
|
|
709
|
-
status: "blocked" | "
|
|
709
|
+
status: "blocked" | "warning" | "passed" | "adjusted";
|
|
710
710
|
message: string | null;
|
|
711
711
|
details: Record<string, unknown> | null;
|
|
712
712
|
createdAt: Date;
|
|
@@ -719,13 +719,13 @@ export declare const sellabilityService: {
|
|
|
719
719
|
offset: number;
|
|
720
720
|
offerId?: string | undefined;
|
|
721
721
|
snapshotId?: string | undefined;
|
|
722
|
-
status?: "
|
|
722
|
+
status?: "failed" | "pending" | "running" | "completed" | "expired" | undefined;
|
|
723
723
|
}): Promise<{
|
|
724
724
|
data: {
|
|
725
725
|
id: string;
|
|
726
726
|
offerId: string;
|
|
727
727
|
snapshotId: string | null;
|
|
728
|
-
status: "
|
|
728
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
729
729
|
startedAt: Date;
|
|
730
730
|
completedAt: Date | null;
|
|
731
731
|
notes: string | null;
|
|
@@ -741,7 +741,7 @@ export declare const sellabilityService: {
|
|
|
741
741
|
id: string;
|
|
742
742
|
offerId: string;
|
|
743
743
|
snapshotId: string | null;
|
|
744
|
-
status: "
|
|
744
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
745
745
|
startedAt: Date;
|
|
746
746
|
completedAt: Date | null;
|
|
747
747
|
notes: string | null;
|
|
@@ -751,28 +751,28 @@ export declare const sellabilityService: {
|
|
|
751
751
|
} | null>;
|
|
752
752
|
createOfferRefreshRun(db: PostgresJsDatabase, data: {
|
|
753
753
|
offerId: string;
|
|
754
|
-
status: "
|
|
754
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
755
755
|
snapshotId?: string | null | undefined;
|
|
756
756
|
startedAt?: string | null | undefined;
|
|
757
757
|
completedAt?: string | null | undefined;
|
|
758
758
|
notes?: string | null | undefined;
|
|
759
759
|
metadata?: Record<string, unknown> | null | undefined;
|
|
760
760
|
}): Promise<{
|
|
761
|
-
id: string;
|
|
762
|
-
status: "expired" | "pending" | "running" | "completed" | "failed";
|
|
763
|
-
snapshotId: string | null;
|
|
764
761
|
metadata: Record<string, unknown> | null;
|
|
762
|
+
id: string;
|
|
763
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
765
764
|
createdAt: Date;
|
|
765
|
+
startedAt: Date;
|
|
766
766
|
updatedAt: Date;
|
|
767
767
|
notes: string | null;
|
|
768
|
-
offerId: string;
|
|
769
|
-
startedAt: Date;
|
|
770
768
|
completedAt: Date | null;
|
|
769
|
+
snapshotId: string | null;
|
|
770
|
+
offerId: string;
|
|
771
771
|
} | null>;
|
|
772
772
|
updateOfferRefreshRun(db: PostgresJsDatabase, id: string, data: {
|
|
773
773
|
offerId?: string | undefined;
|
|
774
774
|
snapshotId?: string | null | undefined;
|
|
775
|
-
status?: "
|
|
775
|
+
status?: "failed" | "pending" | "running" | "completed" | "expired" | undefined;
|
|
776
776
|
startedAt?: string | null | undefined;
|
|
777
777
|
completedAt?: string | null | undefined;
|
|
778
778
|
notes?: string | null | undefined;
|
|
@@ -781,7 +781,7 @@ export declare const sellabilityService: {
|
|
|
781
781
|
id: string;
|
|
782
782
|
offerId: string;
|
|
783
783
|
snapshotId: string | null;
|
|
784
|
-
status: "
|
|
784
|
+
status: "failed" | "pending" | "running" | "completed" | "expired";
|
|
785
785
|
startedAt: Date;
|
|
786
786
|
completedAt: Date | null;
|
|
787
787
|
notes: string | null;
|
|
@@ -797,7 +797,7 @@ export declare const sellabilityService: {
|
|
|
797
797
|
offset: number;
|
|
798
798
|
offerId?: string | undefined;
|
|
799
799
|
snapshotId?: string | undefined;
|
|
800
|
-
status?: "
|
|
800
|
+
status?: "cancelled" | "expired" | "scheduled" | "superseded" | undefined;
|
|
801
801
|
}): Promise<{
|
|
802
802
|
data: {
|
|
803
803
|
id: string;
|
|
@@ -805,7 +805,7 @@ export declare const sellabilityService: {
|
|
|
805
805
|
snapshotId: string | null;
|
|
806
806
|
expiresAt: Date;
|
|
807
807
|
expiredAt: Date | null;
|
|
808
|
-
status: "
|
|
808
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
809
809
|
reason: string | null;
|
|
810
810
|
metadata: Record<string, unknown> | null;
|
|
811
811
|
createdAt: Date;
|
|
@@ -821,7 +821,7 @@ export declare const sellabilityService: {
|
|
|
821
821
|
snapshotId: string | null;
|
|
822
822
|
expiresAt: Date;
|
|
823
823
|
expiredAt: Date | null;
|
|
824
|
-
status: "
|
|
824
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
825
825
|
reason: string | null;
|
|
826
826
|
metadata: Record<string, unknown> | null;
|
|
827
827
|
createdAt: Date;
|
|
@@ -830,29 +830,29 @@ export declare const sellabilityService: {
|
|
|
830
830
|
createOfferExpirationEvent(db: PostgresJsDatabase, data: {
|
|
831
831
|
offerId: string;
|
|
832
832
|
expiresAt: string;
|
|
833
|
-
status: "
|
|
833
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
834
834
|
snapshotId?: string | null | undefined;
|
|
835
835
|
expiredAt?: string | null | undefined;
|
|
836
836
|
reason?: string | null | undefined;
|
|
837
837
|
metadata?: Record<string, unknown> | null | undefined;
|
|
838
838
|
}): Promise<{
|
|
839
|
-
id: string;
|
|
840
|
-
status: "superseded" | "cancelled" | "scheduled" | "expired";
|
|
841
|
-
reason: string | null;
|
|
842
|
-
snapshotId: string | null;
|
|
843
839
|
metadata: Record<string, unknown> | null;
|
|
840
|
+
id: string;
|
|
841
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
844
842
|
createdAt: Date;
|
|
845
843
|
updatedAt: Date;
|
|
846
|
-
offerId: string;
|
|
847
844
|
expiresAt: Date;
|
|
845
|
+
reason: string | null;
|
|
846
|
+
snapshotId: string | null;
|
|
848
847
|
expiredAt: Date | null;
|
|
848
|
+
offerId: string;
|
|
849
849
|
} | null>;
|
|
850
850
|
updateOfferExpirationEvent(db: PostgresJsDatabase, id: string, data: {
|
|
851
851
|
offerId?: string | undefined;
|
|
852
852
|
snapshotId?: string | null | undefined;
|
|
853
853
|
expiresAt?: string | undefined;
|
|
854
854
|
expiredAt?: string | null | undefined;
|
|
855
|
-
status?: "
|
|
855
|
+
status?: "cancelled" | "expired" | "scheduled" | "superseded" | undefined;
|
|
856
856
|
reason?: string | null | undefined;
|
|
857
857
|
metadata?: Record<string, unknown> | null | undefined;
|
|
858
858
|
}): Promise<{
|
|
@@ -861,7 +861,7 @@ export declare const sellabilityService: {
|
|
|
861
861
|
snapshotId: string | null;
|
|
862
862
|
expiresAt: Date;
|
|
863
863
|
expiredAt: Date | null;
|
|
864
|
-
status: "
|
|
864
|
+
status: "cancelled" | "expired" | "scheduled" | "superseded";
|
|
865
865
|
reason: string | null;
|
|
866
866
|
metadata: Record<string, unknown> | null;
|
|
867
867
|
createdAt: Date;
|
|
@@ -875,14 +875,14 @@ export declare const sellabilityService: {
|
|
|
875
875
|
offset: number;
|
|
876
876
|
snapshotId?: string | undefined;
|
|
877
877
|
snapshotItemId?: string | undefined;
|
|
878
|
-
explanationType?: "pricing" | "blocked" | "
|
|
878
|
+
explanationType?: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment" | undefined;
|
|
879
879
|
}): Promise<{
|
|
880
880
|
data: {
|
|
881
881
|
id: string;
|
|
882
882
|
snapshotId: string;
|
|
883
883
|
snapshotItemId: string | null;
|
|
884
884
|
candidateIndex: number;
|
|
885
|
-
explanationType: "pricing" | "blocked" | "
|
|
885
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
886
886
|
code: string | null;
|
|
887
887
|
message: string;
|
|
888
888
|
details: Record<string, unknown> | null;
|
|
@@ -897,7 +897,7 @@ export declare const sellabilityService: {
|
|
|
897
897
|
snapshotId: string;
|
|
898
898
|
snapshotItemId: string | null;
|
|
899
899
|
candidateIndex: number;
|
|
900
|
-
explanationType: "pricing" | "blocked" | "
|
|
900
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
901
901
|
code: string | null;
|
|
902
902
|
message: string;
|
|
903
903
|
details: Record<string, unknown> | null;
|
|
@@ -906,27 +906,27 @@ export declare const sellabilityService: {
|
|
|
906
906
|
createExplanation(db: PostgresJsDatabase, data: {
|
|
907
907
|
snapshotId: string;
|
|
908
908
|
candidateIndex: number;
|
|
909
|
-
explanationType: "pricing" | "blocked" | "
|
|
909
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
910
910
|
message: string;
|
|
911
911
|
snapshotItemId?: string | null | undefined;
|
|
912
912
|
code?: string | null | undefined;
|
|
913
913
|
details?: Record<string, unknown> | null | undefined;
|
|
914
914
|
}): Promise<{
|
|
915
|
+
message: string;
|
|
915
916
|
id: string;
|
|
917
|
+
createdAt: Date;
|
|
916
918
|
code: string | null;
|
|
919
|
+
details: Record<string, unknown> | null;
|
|
917
920
|
snapshotId: string;
|
|
918
|
-
message: string;
|
|
919
|
-
createdAt: Date;
|
|
920
921
|
candidateIndex: number;
|
|
921
922
|
snapshotItemId: string | null;
|
|
922
|
-
|
|
923
|
-
explanationType: "pricing" | "blocked" | "sellable" | "policy" | "pickup" | "allotment" | "warning";
|
|
923
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
924
924
|
} | null>;
|
|
925
925
|
updateExplanation(db: PostgresJsDatabase, id: string, data: {
|
|
926
926
|
snapshotId?: string | undefined;
|
|
927
927
|
snapshotItemId?: string | null | undefined;
|
|
928
928
|
candidateIndex?: number | undefined;
|
|
929
|
-
explanationType?: "pricing" | "blocked" | "
|
|
929
|
+
explanationType?: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment" | undefined;
|
|
930
930
|
code?: string | null | undefined;
|
|
931
931
|
message?: string | undefined;
|
|
932
932
|
details?: Record<string, unknown> | null | undefined;
|
|
@@ -935,7 +935,7 @@ export declare const sellabilityService: {
|
|
|
935
935
|
snapshotId: string;
|
|
936
936
|
snapshotItemId: string | null;
|
|
937
937
|
candidateIndex: number;
|
|
938
|
-
explanationType: "pricing" | "blocked" | "
|
|
938
|
+
explanationType: "pricing" | "blocked" | "warning" | "sellable" | "pickup" | "policy" | "allotment";
|
|
939
939
|
code: string | null;
|
|
940
940
|
message: string;
|
|
941
941
|
details: Record<string, unknown> | null;
|
|
@@ -950,14 +950,14 @@ export declare const sellabilityService: {
|
|
|
950
950
|
status: "expired" | "resolved" | "offer_constructed";
|
|
951
951
|
createdAt: Date;
|
|
952
952
|
updatedAt: Date;
|
|
953
|
+
expiresAt: Date | null;
|
|
953
954
|
marketId: string | null;
|
|
954
955
|
fxRateSetId: string | null;
|
|
955
956
|
productId: string | null;
|
|
956
957
|
optionId: string | null;
|
|
957
958
|
channelId: string | null;
|
|
958
|
-
offerId: string | null;
|
|
959
959
|
slotId: string | null;
|
|
960
|
-
|
|
960
|
+
offerId: string | null;
|
|
961
961
|
requestedCurrencyCode: string | null;
|
|
962
962
|
sourceCurrencyCode: string | null;
|
|
963
963
|
queryPayload: Record<string, unknown>;
|
|
@@ -995,7 +995,7 @@ export declare const sellabilityService: {
|
|
|
995
995
|
} | null;
|
|
996
996
|
channel: {
|
|
997
997
|
id: string;
|
|
998
|
-
kind: "direct" | "reseller" | "
|
|
998
|
+
kind: "direct" | "reseller" | "connect" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
999
999
|
} | null;
|
|
1000
1000
|
sellability: {
|
|
1001
1001
|
mode: "unavailable" | "sellable" | "on_request";
|