kaafil-js 0.1.0-beta.0 → 0.1.0-beta.2
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/client-entry.cjs +251 -6
- package/dist/client-entry.cjs.map +1 -1
- package/dist/client-entry.d.cts +335 -49
- package/dist/client-entry.d.ts +335 -49
- package/dist/client-entry.js +251 -6
- package/dist/client-entry.js.map +1 -1
- package/dist/index.cjs +868 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +713 -34
- package/dist/index.d.ts +713 -34
- package/dist/index.js +854 -46
- package/dist/index.js.map +1 -1
- package/dist/{paginator-CE9JhsLi.d.cts → paginator-Cs48VeEO.d.cts} +12668 -2547
- package/dist/{paginator-CE9JhsLi.d.ts → paginator-Cs48VeEO.d.ts} +12668 -2547
- package/package.json +1 -1
package/dist/client-entry.cjs
CHANGED
|
@@ -16,19 +16,27 @@ var SECURITY_SCHEME_CARRIERS = {
|
|
|
16
16
|
shareAuth: { kind: "bearer" }
|
|
17
17
|
};
|
|
18
18
|
var OperationId = {
|
|
19
|
+
GetShareManifest: "getShareManifest",
|
|
20
|
+
GetShareSnapshot: "getShareSnapshot",
|
|
19
21
|
ListJourneyTriggers: "listJourneyTriggers",
|
|
22
|
+
ListManagerNotifications: "listManagerNotifications",
|
|
20
23
|
ListTripVendors: "listTripVendors",
|
|
21
24
|
PatchJourneyTrigger: "patchJourneyTrigger",
|
|
22
25
|
ReadJourney: "readJourney",
|
|
23
26
|
ReadJourneyCapabilities: "readJourneyCapabilities",
|
|
24
27
|
RebuildJourney: "rebuildJourney",
|
|
25
|
-
RunJourneyStep: "runJourneyStep"
|
|
28
|
+
RunJourneyStep: "runJourneyStep",
|
|
29
|
+
ShareListForms: "shareListForms",
|
|
30
|
+
ShareRenderForm: "shareRenderForm",
|
|
31
|
+
ShareSaveForm: "shareSaveForm",
|
|
32
|
+
ShareSubmitForm: "shareSubmitForm"};
|
|
26
33
|
var OPERATION_SECURITY = {
|
|
27
34
|
acceptConsoleInvite: [],
|
|
28
35
|
acceptPlatformAdminInvite: [],
|
|
29
36
|
addChecklistItem: ["managerAuth"],
|
|
30
37
|
addItineraryItem: ["managerAuth"],
|
|
31
38
|
adjustFloat: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
|
|
39
|
+
archiveForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
32
40
|
assignManager: ["apiKeyAuth"],
|
|
33
41
|
assignPickupTraveller: ["managerAuth"],
|
|
34
42
|
assignRoomingBed: ["managerAuth"],
|
|
@@ -36,16 +44,23 @@ var OPERATION_SECURITY = {
|
|
|
36
44
|
autoAssignRooming: ["managerAuth"],
|
|
37
45
|
autoAssignSeating: ["managerAuth"],
|
|
38
46
|
boardPickupTraveller: ["managerAuth"],
|
|
47
|
+
bulkUpsertBookings: ["apiKeyAuth"],
|
|
39
48
|
cancelTrip: ["apiKeyAuth"],
|
|
40
49
|
changeOwnPlatformPassword: ["platformAdminAuth"],
|
|
41
50
|
claimStatusIngest: ["apiKeyAuth"],
|
|
51
|
+
cloneForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
52
|
+
closeForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
42
53
|
closePickupStop: ["managerAuth"],
|
|
43
|
-
confirmFileUpload: ["managerAuth"],
|
|
54
|
+
confirmFileUpload: ["managerAuth", "apiKeyAuth"],
|
|
44
55
|
consoleLogin: [],
|
|
45
56
|
consoleLogout: ["consoleAuth"],
|
|
46
57
|
consoleSwitchPlane: ["consoleAuth"],
|
|
47
58
|
createApiKey: ["consoleAuth"],
|
|
48
59
|
createConsoleUser: ["consoleAuth"],
|
|
60
|
+
createForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
61
|
+
createFormField: ["apiKeyAuth", "agencyAdminAuth"],
|
|
62
|
+
createFormSection: ["apiKeyAuth", "agencyAdminAuth"],
|
|
63
|
+
createMessageTemplate: ["apiKeyAuth"],
|
|
49
64
|
createPickupStop: ["managerAuth"],
|
|
50
65
|
createPlatformAdmin: ["platformAdminAuth"],
|
|
51
66
|
createPlatformPartner: ["platformAdminAuth"],
|
|
@@ -54,14 +69,28 @@ var OPERATION_SECURITY = {
|
|
|
54
69
|
createRoomingStayWindow: ["managerAuth"],
|
|
55
70
|
createSeatingVehicle: ["managerAuth"],
|
|
56
71
|
createTrekWalkIn: ["managerAuth"],
|
|
72
|
+
deleteBooking: ["apiKeyAuth"],
|
|
57
73
|
deleteChecklistItem: ["managerAuth"],
|
|
74
|
+
deleteForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
75
|
+
deleteFormField: ["apiKeyAuth", "agencyAdminAuth"],
|
|
76
|
+
deleteFormSection: ["apiKeyAuth", "agencyAdminAuth"],
|
|
58
77
|
deleteItineraryItem: ["managerAuth"],
|
|
59
78
|
deletePickupStop: ["managerAuth"],
|
|
60
79
|
deletePlatformPartnerPlan: ["platformAdminAuth"],
|
|
61
80
|
deleteRoomingRoom: ["managerAuth"],
|
|
62
81
|
deleteRoomingStayWindow: ["managerAuth"],
|
|
63
82
|
deleteSeatingVehicle: ["managerAuth"],
|
|
83
|
+
dispatchForm: ["managerAuth", "apiKeyAuth"],
|
|
64
84
|
editWebhookEndpoint: ["consoleAuth"],
|
|
85
|
+
exportFormResponses: ["apiKeyAuth", "managerAuth"],
|
|
86
|
+
getForm: ["apiKeyAuth", "agencyAdminAuth", "managerAuth"],
|
|
87
|
+
getFormAggregate: ["apiKeyAuth"],
|
|
88
|
+
getFormConsentReceipt: ["apiKeyAuth", "managerAuth"],
|
|
89
|
+
getFormResponse: ["managerAuth", "apiKeyAuth"],
|
|
90
|
+
getFormsCompletionMatrix: ["managerAuth", "apiKeyAuth"],
|
|
91
|
+
getFormsCrossModuleAnswers: ["managerAuth", "apiKeyAuth"],
|
|
92
|
+
getShareManifest: ["shareAuth"],
|
|
93
|
+
getShareSnapshot: ["shareAuth"],
|
|
65
94
|
getTrip: ["apiKeyAuth"],
|
|
66
95
|
health: [],
|
|
67
96
|
healthV1: [],
|
|
@@ -72,6 +101,7 @@ var OPERATION_SECURITY = {
|
|
|
72
101
|
linkSeatingManager: ["managerAuth"],
|
|
73
102
|
listAgencies: ["consoleAuth"],
|
|
74
103
|
listApiKeys: ["consoleAuth"],
|
|
104
|
+
listBookings: ["apiKeyAuth", "managerAuth"],
|
|
75
105
|
listChecklistTemplates: ["managerAuth", "apiKeyAuth"],
|
|
76
106
|
listCollections: ["managerAuth", "apiKeyAuth"],
|
|
77
107
|
listConsoleTrips: ["consoleAuth"],
|
|
@@ -79,45 +109,63 @@ var OPERATION_SECURITY = {
|
|
|
79
109
|
listEligibleCollections: ["managerAuth", "apiKeyAuth"],
|
|
80
110
|
listEvents: ["apiKeyAuth"],
|
|
81
111
|
listExpenses: ["managerAuth", "apiKeyAuth"],
|
|
112
|
+
listFormBindings: ["apiKeyAuth", "agencyAdminAuth", "managerAuth"],
|
|
113
|
+
listForms: ["apiKeyAuth", "agencyAdminAuth"],
|
|
82
114
|
listJourneyTriggers: ["apiKeyAuth", "agencyAdminAuth"],
|
|
115
|
+
listManagerNotifications: ["managerAuth"],
|
|
116
|
+
listMessages: ["apiKeyAuth"],
|
|
117
|
+
listMessageTemplates: ["apiKeyAuth"],
|
|
83
118
|
listPickupStops: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
|
|
84
119
|
listPlatformAdmins: ["platformAdminAuth"],
|
|
85
120
|
listPlatformPartnerApiKeys: ["platformAdminAuth"],
|
|
86
121
|
listPlatformPartnerConsoleUsers: ["platformAdminAuth"],
|
|
87
122
|
listPlatformPartners: ["platformAdminAuth"],
|
|
88
123
|
listRoomingStayWindows: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
|
|
124
|
+
listTripFormResponses: ["managerAuth", "apiKeyAuth"],
|
|
125
|
+
listTripForms: ["managerAuth", "apiKeyAuth"],
|
|
89
126
|
listTripVendors: ["apiKeyAuth", "managerAuth", "agencyAdminAuth"],
|
|
90
127
|
listWebhookDeliveries: ["apiKeyAuth"],
|
|
91
128
|
listWebhookEndpoints: ["consoleAuth"],
|
|
92
129
|
logExpense: ["managerAuth"],
|
|
130
|
+
managerCreateFormResponse: ["managerAuth"],
|
|
131
|
+
markNotificationRead: ["managerAuth"],
|
|
93
132
|
mintAgencyAdminTokens: ["apiKeyAuth"],
|
|
94
133
|
mintManagerTokens: ["apiKeyAuth"],
|
|
95
134
|
mintShareToken: ["apiKeyAuth"],
|
|
96
135
|
patchAgencyEntitlement: ["consoleAuth"],
|
|
97
136
|
patchChecklistItem: ["managerAuth"],
|
|
98
137
|
patchConsoleUser: ["consoleAuth"],
|
|
138
|
+
patchForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
139
|
+
patchFormField: ["apiKeyAuth", "agencyAdminAuth"],
|
|
140
|
+
patchFormSection: ["apiKeyAuth", "agencyAdminAuth"],
|
|
99
141
|
patchItineraryDay: ["managerAuth"],
|
|
100
142
|
patchItineraryItem: ["managerAuth"],
|
|
101
143
|
patchJourneyTrigger: ["apiKeyAuth", "agencyAdminAuth"],
|
|
144
|
+
patchMessageTemplate: ["apiKeyAuth"],
|
|
102
145
|
patchPickupStop: ["managerAuth"],
|
|
103
146
|
patchPlatformAdmin: ["platformAdminAuth"],
|
|
104
147
|
patchPlatformPartnerConsoleUser: ["platformAdminAuth"],
|
|
105
148
|
patchRoomingRoom: ["managerAuth"],
|
|
106
149
|
patchRoomingStayWindow: ["managerAuth"],
|
|
107
150
|
patchSeatingVehicle: ["managerAuth"],
|
|
151
|
+
patchShareToken: ["apiKeyAuth"],
|
|
108
152
|
platformLogin: [],
|
|
109
153
|
platformLogout: ["platformAdminAuth"],
|
|
110
154
|
platformMe: ["platformAdminAuth"],
|
|
111
155
|
platformRefreshTokens: ["platformAdminAuth"],
|
|
112
156
|
postponeTrek: ["managerAuth"],
|
|
157
|
+
publishForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
113
158
|
pullChecklistTemplate: ["managerAuth"],
|
|
114
159
|
pushBulkTrips: ["apiKeyAuth"],
|
|
115
160
|
pushManifest: ["apiKeyAuth"],
|
|
116
161
|
pushTripBalances: ["apiKeyAuth"],
|
|
162
|
+
putCommsConfig: ["apiKeyAuth"],
|
|
117
163
|
putPlatformPartnerPlan: ["platformAdminAuth"],
|
|
118
164
|
readAgencyEntitlement: ["consoleAuth"],
|
|
165
|
+
readAgencyFeedbackSummary: ["agencyAdminAuth", "apiKeyAuth"],
|
|
119
166
|
readApiKey: ["consoleAuth"],
|
|
120
167
|
readChecklistAggregate: ["managerAuth", "apiKeyAuth"],
|
|
168
|
+
readCommsConfig: ["apiKeyAuth"],
|
|
121
169
|
readConsoleAudit: ["consoleAuth"],
|
|
122
170
|
readConsoleChecklist: ["consoleAuth"],
|
|
123
171
|
readConsoleItinerary: ["consoleAuth"],
|
|
@@ -146,6 +194,7 @@ var OPERATION_SECURITY = {
|
|
|
146
194
|
readShareToken: ["apiKeyAuth"],
|
|
147
195
|
readTrekBoard: ["managerAuth", "apiKeyAuth"],
|
|
148
196
|
readTrekWalkInMeta: ["managerAuth", "apiKeyAuth"],
|
|
197
|
+
readTripFeedbackSummary: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
|
|
149
198
|
readUsage: ["consoleAuth"],
|
|
150
199
|
readWebhookDelivery: ["apiKeyAuth"],
|
|
151
200
|
readWebhookEndpoint: ["consoleAuth"],
|
|
@@ -155,17 +204,21 @@ var OPERATION_SECURITY = {
|
|
|
155
204
|
redeliverWebhookDelivery: ["apiKeyAuth"],
|
|
156
205
|
refreshAgencyAdminTokens: ["agencyAdminAuth"],
|
|
157
206
|
refreshManagerTokens: ["managerAuth"],
|
|
207
|
+
regenerateShareToken: ["apiKeyAuth"],
|
|
158
208
|
registerWebhookEndpoint: ["consoleAuth"],
|
|
159
209
|
reissueConsoleUserInvite: ["consoleAuth"],
|
|
160
210
|
reissuePlatformAdminInvite: ["platformAdminAuth"],
|
|
161
211
|
reissuePlatformPartnerConsoleUserInvite: ["platformAdminAuth"],
|
|
162
212
|
removeFromManifest: ["apiKeyAuth"],
|
|
163
213
|
renamePlatformPartner: ["platformAdminAuth"],
|
|
214
|
+
reopenForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
164
215
|
reopenPickupStop: ["managerAuth"],
|
|
216
|
+
reorderForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
165
217
|
reorderItineraryItem: ["managerAuth"],
|
|
166
218
|
reorderPickupStops: ["managerAuth"],
|
|
219
|
+
replaceBookingVouchers: ["apiKeyAuth"],
|
|
167
220
|
replayWebhookEndpoint: ["apiKeyAuth"],
|
|
168
|
-
requestFileUpload: ["managerAuth"],
|
|
221
|
+
requestFileUpload: ["managerAuth", "apiKeyAuth"],
|
|
169
222
|
resetPlatformPartnerConsoleUser: ["platformAdminAuth"],
|
|
170
223
|
returnFloat: ["managerAuth"],
|
|
171
224
|
revokeApiKey: ["consoleAuth"],
|
|
@@ -174,9 +227,15 @@ var OPERATION_SECURITY = {
|
|
|
174
227
|
rotateApiKey: ["consoleAuth"],
|
|
175
228
|
rotateWebhookEndpointSecret: ["consoleAuth"],
|
|
176
229
|
runJourneyStep: ["apiKeyAuth"],
|
|
230
|
+
sendMessage: ["apiKeyAuth"],
|
|
177
231
|
setPlatformPartnerStatus: ["platformAdminAuth"],
|
|
232
|
+
shareListForms: ["shareAuth"],
|
|
233
|
+
shareRenderForm: ["shareAuth"],
|
|
234
|
+
shareSaveForm: ["shareAuth"],
|
|
235
|
+
shareSubmitForm: ["shareAuth"],
|
|
178
236
|
submitExpenseClaim: ["managerAuth"],
|
|
179
237
|
toggleChecklistItem: ["managerAuth"],
|
|
238
|
+
unarchiveForm: ["apiKeyAuth", "agencyAdminAuth"],
|
|
180
239
|
unassignManager: ["apiKeyAuth"],
|
|
181
240
|
unlinkSeatingManager: ["managerAuth"],
|
|
182
241
|
upsertAgencyAdmin: ["apiKeyAuth"],
|
|
@@ -193,6 +252,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
193
252
|
addChecklistItem: true,
|
|
194
253
|
addItineraryItem: true,
|
|
195
254
|
adjustFloat: true,
|
|
255
|
+
archiveForm: false,
|
|
196
256
|
assignManager: true,
|
|
197
257
|
assignPickupTraveller: true,
|
|
198
258
|
assignRoomingBed: true,
|
|
@@ -200,9 +260,12 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
200
260
|
autoAssignRooming: true,
|
|
201
261
|
autoAssignSeating: true,
|
|
202
262
|
boardPickupTraveller: true,
|
|
263
|
+
bulkUpsertBookings: true,
|
|
203
264
|
cancelTrip: true,
|
|
204
265
|
changeOwnPlatformPassword: false,
|
|
205
266
|
claimStatusIngest: true,
|
|
267
|
+
cloneForm: true,
|
|
268
|
+
closeForm: false,
|
|
206
269
|
closePickupStop: true,
|
|
207
270
|
confirmFileUpload: true,
|
|
208
271
|
consoleLogin: false,
|
|
@@ -210,6 +273,10 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
210
273
|
consoleSwitchPlane: false,
|
|
211
274
|
createApiKey: true,
|
|
212
275
|
createConsoleUser: true,
|
|
276
|
+
createForm: true,
|
|
277
|
+
createFormField: false,
|
|
278
|
+
createFormSection: false,
|
|
279
|
+
createMessageTemplate: true,
|
|
213
280
|
createPickupStop: true,
|
|
214
281
|
createPlatformAdmin: false,
|
|
215
282
|
createPlatformPartner: false,
|
|
@@ -218,14 +285,28 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
218
285
|
createRoomingStayWindow: true,
|
|
219
286
|
createSeatingVehicle: true,
|
|
220
287
|
createTrekWalkIn: true,
|
|
288
|
+
deleteBooking: true,
|
|
221
289
|
deleteChecklistItem: false,
|
|
290
|
+
deleteForm: false,
|
|
291
|
+
deleteFormField: false,
|
|
292
|
+
deleteFormSection: false,
|
|
222
293
|
deleteItineraryItem: false,
|
|
223
294
|
deletePickupStop: false,
|
|
224
295
|
deletePlatformPartnerPlan: false,
|
|
225
296
|
deleteRoomingRoom: false,
|
|
226
297
|
deleteRoomingStayWindow: false,
|
|
227
298
|
deleteSeatingVehicle: false,
|
|
299
|
+
dispatchForm: true,
|
|
228
300
|
editWebhookEndpoint: true,
|
|
301
|
+
exportFormResponses: false,
|
|
302
|
+
getForm: false,
|
|
303
|
+
getFormAggregate: false,
|
|
304
|
+
getFormConsentReceipt: false,
|
|
305
|
+
getFormResponse: false,
|
|
306
|
+
getFormsCompletionMatrix: false,
|
|
307
|
+
getFormsCrossModuleAnswers: false,
|
|
308
|
+
getShareManifest: false,
|
|
309
|
+
getShareSnapshot: false,
|
|
229
310
|
getTrip: false,
|
|
230
311
|
health: false,
|
|
231
312
|
healthV1: false,
|
|
@@ -236,6 +317,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
236
317
|
linkSeatingManager: true,
|
|
237
318
|
listAgencies: false,
|
|
238
319
|
listApiKeys: false,
|
|
320
|
+
listBookings: false,
|
|
239
321
|
listChecklistTemplates: false,
|
|
240
322
|
listCollections: false,
|
|
241
323
|
listConsoleTrips: false,
|
|
@@ -243,45 +325,63 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
243
325
|
listEligibleCollections: false,
|
|
244
326
|
listEvents: false,
|
|
245
327
|
listExpenses: false,
|
|
328
|
+
listFormBindings: false,
|
|
329
|
+
listForms: false,
|
|
246
330
|
listJourneyTriggers: false,
|
|
331
|
+
listManagerNotifications: false,
|
|
332
|
+
listMessages: false,
|
|
333
|
+
listMessageTemplates: false,
|
|
247
334
|
listPickupStops: false,
|
|
248
335
|
listPlatformAdmins: false,
|
|
249
336
|
listPlatformPartnerApiKeys: false,
|
|
250
337
|
listPlatformPartnerConsoleUsers: false,
|
|
251
338
|
listPlatformPartners: false,
|
|
252
339
|
listRoomingStayWindows: false,
|
|
340
|
+
listTripFormResponses: false,
|
|
341
|
+
listTripForms: false,
|
|
253
342
|
listTripVendors: false,
|
|
254
343
|
listWebhookDeliveries: false,
|
|
255
344
|
listWebhookEndpoints: false,
|
|
256
345
|
logExpense: true,
|
|
346
|
+
managerCreateFormResponse: true,
|
|
347
|
+
markNotificationRead: true,
|
|
257
348
|
mintAgencyAdminTokens: false,
|
|
258
349
|
mintManagerTokens: false,
|
|
259
350
|
mintShareToken: true,
|
|
260
351
|
patchAgencyEntitlement: true,
|
|
261
352
|
patchChecklistItem: false,
|
|
262
353
|
patchConsoleUser: true,
|
|
354
|
+
patchForm: false,
|
|
355
|
+
patchFormField: false,
|
|
356
|
+
patchFormSection: false,
|
|
263
357
|
patchItineraryDay: false,
|
|
264
358
|
patchItineraryItem: false,
|
|
265
359
|
patchJourneyTrigger: true,
|
|
360
|
+
patchMessageTemplate: false,
|
|
266
361
|
patchPickupStop: false,
|
|
267
362
|
patchPlatformAdmin: false,
|
|
268
363
|
patchPlatformPartnerConsoleUser: false,
|
|
269
364
|
patchRoomingRoom: false,
|
|
270
365
|
patchRoomingStayWindow: false,
|
|
271
366
|
patchSeatingVehicle: false,
|
|
367
|
+
patchShareToken: false,
|
|
272
368
|
platformLogin: true,
|
|
273
369
|
platformLogout: false,
|
|
274
370
|
platformMe: false,
|
|
275
371
|
platformRefreshTokens: true,
|
|
276
372
|
postponeTrek: true,
|
|
373
|
+
publishForm: false,
|
|
277
374
|
pullChecklistTemplate: true,
|
|
278
375
|
pushBulkTrips: true,
|
|
279
376
|
pushManifest: true,
|
|
280
377
|
pushTripBalances: true,
|
|
378
|
+
putCommsConfig: false,
|
|
281
379
|
putPlatformPartnerPlan: false,
|
|
282
380
|
readAgencyEntitlement: false,
|
|
381
|
+
readAgencyFeedbackSummary: false,
|
|
283
382
|
readApiKey: false,
|
|
284
383
|
readChecklistAggregate: false,
|
|
384
|
+
readCommsConfig: false,
|
|
285
385
|
readConsoleAudit: false,
|
|
286
386
|
readConsoleChecklist: false,
|
|
287
387
|
readConsoleItinerary: false,
|
|
@@ -310,6 +410,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
310
410
|
readShareToken: false,
|
|
311
411
|
readTrekBoard: false,
|
|
312
412
|
readTrekWalkInMeta: false,
|
|
413
|
+
readTripFeedbackSummary: false,
|
|
313
414
|
readUsage: false,
|
|
314
415
|
readWebhookDelivery: false,
|
|
315
416
|
readWebhookEndpoint: false,
|
|
@@ -319,15 +420,19 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
319
420
|
redeliverWebhookDelivery: true,
|
|
320
421
|
refreshAgencyAdminTokens: false,
|
|
321
422
|
refreshManagerTokens: false,
|
|
423
|
+
regenerateShareToken: true,
|
|
322
424
|
registerWebhookEndpoint: true,
|
|
323
425
|
reissueConsoleUserInvite: true,
|
|
324
426
|
reissuePlatformAdminInvite: false,
|
|
325
427
|
reissuePlatformPartnerConsoleUserInvite: false,
|
|
326
428
|
removeFromManifest: true,
|
|
327
429
|
renamePlatformPartner: false,
|
|
430
|
+
reopenForm: false,
|
|
328
431
|
reopenPickupStop: true,
|
|
432
|
+
reorderForm: false,
|
|
329
433
|
reorderItineraryItem: true,
|
|
330
434
|
reorderPickupStops: true,
|
|
435
|
+
replaceBookingVouchers: false,
|
|
331
436
|
replayWebhookEndpoint: true,
|
|
332
437
|
requestFileUpload: true,
|
|
333
438
|
resetPlatformPartnerConsoleUser: false,
|
|
@@ -338,9 +443,15 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
|
|
|
338
443
|
rotateApiKey: true,
|
|
339
444
|
rotateWebhookEndpointSecret: true,
|
|
340
445
|
runJourneyStep: true,
|
|
446
|
+
sendMessage: true,
|
|
341
447
|
setPlatformPartnerStatus: false,
|
|
448
|
+
shareListForms: false,
|
|
449
|
+
shareRenderForm: false,
|
|
450
|
+
shareSaveForm: true,
|
|
451
|
+
shareSubmitForm: true,
|
|
342
452
|
submitExpenseClaim: true,
|
|
343
453
|
toggleChecklistItem: true,
|
|
454
|
+
unarchiveForm: false,
|
|
344
455
|
unassignManager: true,
|
|
345
456
|
unlinkSeatingManager: false,
|
|
346
457
|
upsertAgencyAdmin: true,
|
|
@@ -358,8 +469,16 @@ var KaafilErrorCode = {
|
|
|
358
469
|
CannotPostpone: "CANNOT_POSTPONE",
|
|
359
470
|
CapabilityUnavailable: "CAPABILITY_UNAVAILABLE",
|
|
360
471
|
ConflictVersion: "CONFLICT_VERSION",
|
|
472
|
+
ConsentRequired: "CONSENT_REQUIRED",
|
|
473
|
+
FieldNotVisible: "FIELD_NOT_VISIBLE",
|
|
361
474
|
FileOrphaned: "FILE_ORPHANED",
|
|
362
475
|
FilePurged: "FILE_PURGED",
|
|
476
|
+
FormClosed: "FORM_CLOSED",
|
|
477
|
+
FormDefinitionChanged: "FORM_DEFINITION_CHANGED",
|
|
478
|
+
FormLockedByResponses: "FORM_LOCKED_BY_RESPONSES",
|
|
479
|
+
FormNotOpen: "FORM_NOT_OPEN",
|
|
480
|
+
FormNotPublishable: "FORM_NOT_PUBLISHABLE",
|
|
481
|
+
FormWindowInvalid: "FORM_WINDOW_INVALID",
|
|
363
482
|
IdempotencyKeyReused: "IDEMPOTENCY_KEY_REUSED",
|
|
364
483
|
InternalError: "INTERNAL_ERROR",
|
|
365
484
|
Locked: "LOCKED",
|
|
@@ -371,6 +490,7 @@ var KaafilErrorCode = {
|
|
|
371
490
|
ReadOnlyRole: "READ_ONLY_ROLE",
|
|
372
491
|
ResourceNotFound: "RESOURCE_NOT_FOUND",
|
|
373
492
|
ResponseClosed: "RESPONSE_CLOSED",
|
|
493
|
+
ResponseLimitReached: "RESPONSE_LIMIT_REACHED",
|
|
374
494
|
SeatingCapacityOrphan: "SEATING_CAPACITY_ORPHAN",
|
|
375
495
|
SecretNotReplayable: "SECRET_NOT_REPLAYABLE",
|
|
376
496
|
ShareTokenExpired: "SHARE_TOKEN_EXPIRED",
|
|
@@ -400,8 +520,16 @@ var ERROR_CODE_TABLE = {
|
|
|
400
520
|
CANNOT_POSTPONE: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
401
521
|
CAPABILITY_UNAVAILABLE: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
402
522
|
CONFLICT_VERSION: { status: 409, retryability: "no", outboxClass: "CONFLICT" },
|
|
523
|
+
CONSENT_REQUIRED: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
524
|
+
FIELD_NOT_VISIBLE: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
403
525
|
FILE_ORPHANED: { status: 409, retryability: "no", outboxClass: "FATAL" },
|
|
404
526
|
FILE_PURGED: { status: 410, retryability: "no", outboxClass: "FATAL" },
|
|
527
|
+
FORM_CLOSED: { status: 409, retryability: "no", outboxClass: "FATAL" },
|
|
528
|
+
FORM_DEFINITION_CHANGED: { status: 409, retryability: "no", outboxClass: "FATAL" },
|
|
529
|
+
FORM_LOCKED_BY_RESPONSES: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
530
|
+
FORM_NOT_OPEN: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
531
|
+
FORM_NOT_PUBLISHABLE: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
532
|
+
FORM_WINDOW_INVALID: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
405
533
|
IDEMPOTENCY_KEY_REUSED: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
406
534
|
INTERNAL_ERROR: { status: 500, retryability: "yes", outboxClass: "TRANSIENT" },
|
|
407
535
|
LOCKED: { status: 423, retryability: "no", outboxClass: "FATAL" },
|
|
@@ -413,6 +541,7 @@ var ERROR_CODE_TABLE = {
|
|
|
413
541
|
READ_ONLY_ROLE: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
414
542
|
RESOURCE_NOT_FOUND: { status: 404, retryability: "no", outboxClass: "FATAL" },
|
|
415
543
|
RESPONSE_CLOSED: { status: 409, retryability: "no", outboxClass: "FATAL" },
|
|
544
|
+
RESPONSE_LIMIT_REACHED: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
416
545
|
SEATING_CAPACITY_ORPHAN: { status: 422, retryability: "no", outboxClass: "FATAL" },
|
|
417
546
|
SECRET_NOT_REPLAYABLE: { status: 409, retryability: "no", outboxClass: "CONFLICT" },
|
|
418
547
|
SHARE_TOKEN_EXPIRED: { status: 401, retryability: "no", outboxClass: "FATAL" },
|
|
@@ -919,8 +1048,8 @@ var CredentialResolver = class {
|
|
|
919
1048
|
|
|
920
1049
|
// src/config.ts
|
|
921
1050
|
var ENVIRONMENT_BASE_URLS = {
|
|
922
|
-
live: "https://
|
|
923
|
-
test: "https://
|
|
1051
|
+
live: "https://engine.kaafil.in",
|
|
1052
|
+
test: "https://engine.kaafil.in"
|
|
924
1053
|
};
|
|
925
1054
|
var KaafilConfigError = class extends Error {
|
|
926
1055
|
constructor(message) {
|
|
@@ -1466,6 +1595,97 @@ function createJourneyResource(client) {
|
|
|
1466
1595
|
return resource;
|
|
1467
1596
|
}
|
|
1468
1597
|
|
|
1598
|
+
// src/resources/notifications.ts
|
|
1599
|
+
function createNotificationsResource(client) {
|
|
1600
|
+
return {
|
|
1601
|
+
async list(options = {}) {
|
|
1602
|
+
const { since, signal } = options;
|
|
1603
|
+
return client.execute({
|
|
1604
|
+
method: "GET",
|
|
1605
|
+
operationId: OperationId.ListManagerNotifications,
|
|
1606
|
+
path: "/api/v1/managers/me/notifications",
|
|
1607
|
+
...since !== void 0 ? { query: { since } } : {},
|
|
1608
|
+
...signal !== void 0 ? { signal } : {}
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
};
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
// src/resources/share.ts
|
|
1615
|
+
function createShareResource(client) {
|
|
1616
|
+
return {
|
|
1617
|
+
async snapshot(options) {
|
|
1618
|
+
const { token, signal } = options;
|
|
1619
|
+
return client.execute({
|
|
1620
|
+
method: "GET",
|
|
1621
|
+
operationId: OperationId.GetShareSnapshot,
|
|
1622
|
+
path: "/api/v1/share/{token}",
|
|
1623
|
+
pathParams: { token },
|
|
1624
|
+
...signal !== void 0 ? { signal } : {}
|
|
1625
|
+
});
|
|
1626
|
+
},
|
|
1627
|
+
async manifest(options) {
|
|
1628
|
+
const { token, signal } = options;
|
|
1629
|
+
return client.execute({
|
|
1630
|
+
method: "GET",
|
|
1631
|
+
operationId: OperationId.GetShareManifest,
|
|
1632
|
+
path: "/api/v1/share/{token}/manifest",
|
|
1633
|
+
pathParams: { token },
|
|
1634
|
+
...signal !== void 0 ? { signal } : {}
|
|
1635
|
+
});
|
|
1636
|
+
},
|
|
1637
|
+
forms: {
|
|
1638
|
+
async list(options) {
|
|
1639
|
+
const { token, signal } = options;
|
|
1640
|
+
return client.execute({
|
|
1641
|
+
method: "GET",
|
|
1642
|
+
operationId: OperationId.ShareListForms,
|
|
1643
|
+
path: "/api/v1/share/{token}/forms",
|
|
1644
|
+
pathParams: { token },
|
|
1645
|
+
...signal !== void 0 ? { signal } : {}
|
|
1646
|
+
});
|
|
1647
|
+
},
|
|
1648
|
+
async render(options) {
|
|
1649
|
+
const { token, formId, travellerRef, signal } = options;
|
|
1650
|
+
return client.execute({
|
|
1651
|
+
method: "GET",
|
|
1652
|
+
operationId: OperationId.ShareRenderForm,
|
|
1653
|
+
path: "/api/v1/share/{token}/forms/{formId}",
|
|
1654
|
+
pathParams: { token, formId },
|
|
1655
|
+
query: { travellerRef },
|
|
1656
|
+
...signal !== void 0 ? { signal } : {}
|
|
1657
|
+
});
|
|
1658
|
+
},
|
|
1659
|
+
async save(options) {
|
|
1660
|
+
const { token, formId, travellerRef, idempotencyKey, signal, ...body } = options;
|
|
1661
|
+
return client.execute({
|
|
1662
|
+
method: "POST",
|
|
1663
|
+
operationId: OperationId.ShareSaveForm,
|
|
1664
|
+
path: "/api/v1/share/{token}/forms/{formId}/save",
|
|
1665
|
+
pathParams: { token, formId },
|
|
1666
|
+
query: { travellerRef },
|
|
1667
|
+
body,
|
|
1668
|
+
...idempotencyKey !== void 0 ? { idempotencyKey } : {},
|
|
1669
|
+
...signal !== void 0 ? { signal } : {}
|
|
1670
|
+
});
|
|
1671
|
+
},
|
|
1672
|
+
async submit(options) {
|
|
1673
|
+
const { token, formId, travellerRef, idempotencyKey, signal, ...body } = options;
|
|
1674
|
+
return client.execute({
|
|
1675
|
+
method: "POST",
|
|
1676
|
+
operationId: OperationId.ShareSubmitForm,
|
|
1677
|
+
path: "/api/v1/share/{token}/forms/{formId}/submit",
|
|
1678
|
+
pathParams: { token, formId },
|
|
1679
|
+
query: { travellerRef },
|
|
1680
|
+
body,
|
|
1681
|
+
...idempotencyKey !== void 0 ? { idempotencyKey } : {},
|
|
1682
|
+
...signal !== void 0 ? { signal } : {}
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1469
1689
|
// src/resources/vendors.ts
|
|
1470
1690
|
function createVendorsResource(client) {
|
|
1471
1691
|
return {
|
|
@@ -1646,11 +1866,31 @@ var KaafilClient = class {
|
|
|
1646
1866
|
this.#open({ kind: "agencyAdmin", ...options });
|
|
1647
1867
|
}
|
|
1648
1868
|
};
|
|
1869
|
+
/**
|
|
1870
|
+
* `open` mints the session; every other member proxies straight through
|
|
1871
|
+
* to the opened session's `ShareResource` (`./resources/share.ts`) — kept
|
|
1872
|
+
* on this ONE `share` object, rather than `open` here and the six read/
|
|
1873
|
+
* write methods on a sibling getter, because `client.share.open({ token
|
|
1874
|
+
* })` then `client.share.snapshot(...)` reads as one surface a caller
|
|
1875
|
+
* opens and then calls, not two same-named things that happen to collide.
|
|
1876
|
+
* Every member past `open` throws `KaafilClientNotOpenError` before a
|
|
1877
|
+
* session is open, and `UnsatisfiableSchemeError` if the open session is
|
|
1878
|
+
* a `managerSession`/`agencyAdmin` one — see `KaafilClientState.share`'s
|
|
1879
|
+
* own doc.
|
|
1880
|
+
*/
|
|
1649
1881
|
share = {
|
|
1650
1882
|
/** Opens a read-only session with a share token minted server-side by
|
|
1651
1883
|
* `kaafil.shareTokens.create(...)`. */
|
|
1652
1884
|
open: (options) => {
|
|
1653
1885
|
this.#open({ kind: "shareToken", ...options });
|
|
1886
|
+
},
|
|
1887
|
+
snapshot: (options) => this.#requireState().share.snapshot(options),
|
|
1888
|
+
manifest: (options) => this.#requireState().share.manifest(options),
|
|
1889
|
+
forms: {
|
|
1890
|
+
list: (options) => this.#requireState().share.forms.list(options),
|
|
1891
|
+
render: (options) => this.#requireState().share.forms.render(options),
|
|
1892
|
+
save: (options) => this.#requireState().share.forms.save(options),
|
|
1893
|
+
submit: (options) => this.#requireState().share.forms.submit(options)
|
|
1654
1894
|
}
|
|
1655
1895
|
};
|
|
1656
1896
|
get vendors() {
|
|
@@ -1659,6 +1899,9 @@ var KaafilClient = class {
|
|
|
1659
1899
|
get journey() {
|
|
1660
1900
|
return this.#requireState().journey;
|
|
1661
1901
|
}
|
|
1902
|
+
get notifications() {
|
|
1903
|
+
return this.#requireState().notifications;
|
|
1904
|
+
}
|
|
1662
1905
|
/**
|
|
1663
1906
|
* Total teardown. One assignment, no field to forget — see
|
|
1664
1907
|
* `KaafilClientState` above. Safe to call whether or not a session is
|
|
@@ -1725,7 +1968,9 @@ var KaafilClient = class {
|
|
|
1725
1968
|
this.#state = {
|
|
1726
1969
|
http,
|
|
1727
1970
|
vendors: createVendorsResource(http),
|
|
1728
|
-
journey: createJourneyResource(http)
|
|
1971
|
+
journey: createJourneyResource(http),
|
|
1972
|
+
share: createShareResource(http),
|
|
1973
|
+
notifications: createNotificationsResource(http)
|
|
1729
1974
|
};
|
|
1730
1975
|
}
|
|
1731
1976
|
#requireState() {
|