kaafil-js 0.1.0-beta.4 → 0.1.0-beta.5

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.
@@ -111,7 +111,9 @@ var OPERATION_SECURITY = {
111
111
  acceptPlatformAdminInvite: [],
112
112
  addChecklistItem: ["managerAuth"],
113
113
  addItineraryItem: ["managerAuth"],
114
+ addPlatformIncidentUpdate: ["platformAdminAuth"],
114
115
  adjustFloat: ["managerAuth", "apiKeyAuth", "agencyAdminAuth"],
116
+ advanceTestTime: ["apiKeyAuth"],
115
117
  archiveForm: ["apiKeyAuth", "agencyAdminAuth"],
116
118
  assignManager: ["apiKeyAuth"],
117
119
  assignPickupTraveller: ["managerAuth"],
@@ -120,8 +122,10 @@ var OPERATION_SECURITY = {
120
122
  autoAssignRooming: ["managerAuth"],
121
123
  autoAssignSeating: ["managerAuth"],
122
124
  boardPickupTraveller: ["managerAuth"],
125
+ buildTestFixtures: ["apiKeyAuth"],
123
126
  bulkUpsertBookings: ["apiKeyAuth"],
124
127
  cancelTrip: ["apiKeyAuth"],
128
+ changeMyConsolePassword: ["consoleAuth"],
125
129
  changeOwnPlatformPassword: ["platformAdminAuth"],
126
130
  claimStatusIngest: ["apiKeyAuth"],
127
131
  cloneForm: ["apiKeyAuth", "agencyAdminAuth"],
@@ -131,7 +135,9 @@ var OPERATION_SECURITY = {
131
135
  consoleLogin: [],
132
136
  consoleLogout: ["consoleAuth"],
133
137
  consoleSwitchPlane: ["consoleAuth"],
138
+ copyAgencyEntitlement: ["consoleAuth"],
134
139
  createApiKey: ["consoleAuth"],
140
+ createCommsProviderCredential: ["apiKeyAuth"],
135
141
  createConsoleUser: ["consoleAuth"],
136
142
  createForm: ["apiKeyAuth", "agencyAdminAuth"],
137
143
  createFormField: ["apiKeyAuth", "agencyAdminAuth"],
@@ -139,6 +145,7 @@ var OPERATION_SECURITY = {
139
145
  createMessageTemplate: ["apiKeyAuth"],
140
146
  createPickupStop: ["managerAuth"],
141
147
  createPlatformAdmin: ["platformAdminAuth"],
148
+ createPlatformIncident: ["platformAdminAuth"],
142
149
  createPlatformPartner: ["platformAdminAuth"],
143
150
  createPlatformPartnerConsoleUser: ["platformAdminAuth"],
144
151
  createRoomingRoom: ["managerAuth"],
@@ -184,7 +191,6 @@ var OPERATION_SECURITY = {
184
191
  listBookings: ["apiKeyAuth", "managerAuth"],
185
192
  listChecklistTemplates: ["managerAuth", "apiKeyAuth"],
186
193
  listCollections: ["managerAuth", "apiKeyAuth"],
187
- listConsoleTrips: ["consoleAuth"],
188
194
  listConsoleUsers: ["consoleAuth"],
189
195
  listEligibleCollections: ["managerAuth", "apiKeyAuth"],
190
196
  listEvents: ["apiKeyAuth"],
@@ -192,14 +198,20 @@ var OPERATION_SECURITY = {
192
198
  listFormBindings: ["apiKeyAuth", "agencyAdminAuth", "managerAuth"],
193
199
  listForms: ["apiKeyAuth", "agencyAdminAuth"],
194
200
  listJourneyTriggers: ["apiKeyAuth", "agencyAdminAuth"],
201
+ listJourneyTriggersConsole: ["consoleAuth"],
195
202
  listManagerNotifications: ["managerAuth"],
196
203
  listMessages: ["apiKeyAuth"],
204
+ listMessagesConsole: ["consoleAuth"],
197
205
  listMessageTemplates: ["apiKeyAuth"],
206
+ listMyConsoleSessions: ["consoleAuth"],
198
207
  listPickupStops: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
199
208
  listPlatformAdmins: ["platformAdminAuth"],
209
+ listPlatformAudit: ["platformAdminAuth"],
210
+ listPlatformIncidents: ["platformAdminAuth"],
200
211
  listPlatformPartnerApiKeys: ["platformAdminAuth"],
201
212
  listPlatformPartnerConsoleUsers: ["platformAdminAuth"],
202
213
  listPlatformPartners: ["platformAdminAuth"],
214
+ listPlatformPlanTiers: ["platformAdminAuth"],
203
215
  listRoomingStayWindows: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
204
216
  listSupportIngestLog: ["platformAdminAuth"],
205
217
  listSupportWebhookDeliveries: ["platformAdminAuth"],
@@ -207,6 +219,7 @@ var OPERATION_SECURITY = {
207
219
  listTripForms: ["managerAuth", "apiKeyAuth"],
208
220
  listTripVendors: ["apiKeyAuth", "managerAuth", "agencyAdminAuth"],
209
221
  listWebhookDeliveries: ["apiKeyAuth"],
222
+ listWebhookDeliveriesConsole: ["consoleAuth"],
210
223
  listWebhookEndpoints: ["consoleAuth"],
211
224
  lockCloseout: ["managerAuth"],
212
225
  logExpense: ["managerAuth"],
@@ -215,6 +228,7 @@ var OPERATION_SECURITY = {
215
228
  mintAgencyAdminTokens: ["apiKeyAuth"],
216
229
  mintManagerTokens: ["apiKeyAuth"],
217
230
  mintShareToken: ["apiKeyAuth"],
231
+ nudgeConsoleInvite: [],
218
232
  patchAgencyEntitlement: ["consoleAuth"],
219
233
  patchChecklistItem: ["managerAuth"],
220
234
  patchConsoleUser: ["consoleAuth"],
@@ -224,6 +238,7 @@ var OPERATION_SECURITY = {
224
238
  patchItineraryDay: ["managerAuth"],
225
239
  patchItineraryItem: ["managerAuth"],
226
240
  patchJourneyTrigger: ["apiKeyAuth", "agencyAdminAuth"],
241
+ patchJourneyTriggerConsole: ["consoleAuth"],
227
242
  patchMessageTemplate: ["apiKeyAuth"],
228
243
  patchPickupStop: ["managerAuth"],
229
244
  patchPlatformAdmin: ["platformAdminAuth"],
@@ -232,10 +247,12 @@ var OPERATION_SECURITY = {
232
247
  patchRoomingStayWindow: ["managerAuth"],
233
248
  patchSeatingVehicle: ["managerAuth"],
234
249
  patchShareToken: ["apiKeyAuth"],
250
+ platformHealth: ["platformAdminAuth"],
235
251
  platformLogin: [],
236
252
  platformLogout: ["platformAdminAuth"],
237
253
  platformMe: ["platformAdminAuth"],
238
254
  platformRefreshTokens: ["platformAdminAuth"],
255
+ platformWebhookHealth: ["platformAdminAuth"],
239
256
  postponeTrek: ["managerAuth"],
240
257
  publishForm: ["apiKeyAuth", "agencyAdminAuth"],
241
258
  pullChecklistTemplate: ["managerAuth"],
@@ -243,6 +260,7 @@ var OPERATION_SECURITY = {
243
260
  pushManifest: ["apiKeyAuth"],
244
261
  pushTripBalances: ["apiKeyAuth"],
245
262
  putCommsConfig: ["apiKeyAuth"],
263
+ putCommsConfigConsole: ["consoleAuth"],
246
264
  putPlatformPartnerPlan: ["platformAdminAuth"],
247
265
  readAgencyEntitlement: ["consoleAuth"],
248
266
  readAgencyFeedbackSummary: ["agencyAdminAuth", "apiKeyAuth"],
@@ -250,12 +268,10 @@ var OPERATION_SECURITY = {
250
268
  readChecklistAggregate: ["managerAuth", "apiKeyAuth"],
251
269
  readCloseout: ["managerAuth", "apiKeyAuth"],
252
270
  readCommsConfig: ["apiKeyAuth"],
271
+ readCommsConfigConsole: ["consoleAuth"],
253
272
  readConsoleAudit: ["consoleAuth"],
254
- readConsoleChecklist: ["consoleAuth"],
255
- readConsoleItinerary: ["consoleAuth"],
256
- readConsolePickups: ["consoleAuth"],
257
- readConsoleRooming: ["consoleAuth"],
258
- readConsoleSeating: ["consoleAuth"],
273
+ readConsoleCertification: ["consoleAuth"],
274
+ readConsoleMe: ["consoleAuth"],
259
275
  readConsoleUserInvite: ["consoleAuth"],
260
276
  readEndpointDeliveries: ["consoleAuth"],
261
277
  readEndpointDelivery: ["consoleAuth"],
@@ -266,6 +282,7 @@ var OPERATION_SECURITY = {
266
282
  readFloatLedger: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
267
283
  readFloatSummary: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
268
284
  readIngestLog: ["consoleAuth"],
285
+ readIngestLogSummary: ["consoleAuth"],
269
286
  readItinerary: ["apiKeyAuth", "managerAuth", "agencyAdminAuth"],
270
287
  readItineraryChangeLog: ["apiKeyAuth", "managerAuth", "agencyAdminAuth"],
271
288
  readJourney: ["apiKeyAuth", "managerAuth", "agencyAdminAuth"],
@@ -278,16 +295,22 @@ var OPERATION_SECURITY = {
278
295
  readShareToken: ["apiKeyAuth"],
279
296
  readSupportJourneyState: ["platformAdminAuth"],
280
297
  readSupportWebhookDeliveryDetail: ["platformAdminAuth"],
298
+ readTenantDefaultCommsConfig: ["apiKeyAuth"],
299
+ readTestClock: ["apiKeyAuth"],
300
+ readTestQuota: ["apiKeyAuth"],
281
301
  readTrekBoard: ["managerAuth", "apiKeyAuth"],
282
302
  readTrekWalkInMeta: ["managerAuth", "apiKeyAuth"],
283
303
  readTripFeedbackSummary: ["managerAuth", "agencyAdminAuth", "apiKeyAuth"],
284
304
  readUsage: ["consoleAuth"],
285
305
  readWebhookDelivery: ["apiKeyAuth"],
306
+ readWebhookDeliveryConsole: ["consoleAuth"],
286
307
  readWebhookEndpoint: ["consoleAuth"],
308
+ readWebhookEventCatalog: ["consoleAuth"],
287
309
  rebuildJourney: ["apiKeyAuth"],
288
310
  recordCollection: ["managerAuth"],
289
311
  redeliverEndpointDelivery: ["consoleAuth"],
290
312
  redeliverWebhookDelivery: ["apiKeyAuth"],
313
+ redeliverWebhookDeliveryConsole: ["consoleAuth"],
291
314
  redriveSupportWebhookDelivery: ["platformAdminAuth"],
292
315
  refreshAgencyAdminTokens: ["agencyAdminAuth"],
293
316
  refreshManagerTokens: ["managerAuth"],
@@ -306,16 +329,21 @@ var OPERATION_SECURITY = {
306
329
  replaceBookingVouchers: ["apiKeyAuth"],
307
330
  replaySupportWebhookRange: ["platformAdminAuth"],
308
331
  replayWebhookEndpoint: ["apiKeyAuth"],
332
+ replayWebhookEndpointConsole: ["consoleAuth"],
309
333
  requestFileUpload: ["managerAuth", "apiKeyAuth"],
310
334
  resetPlatformPartnerConsoleUser: ["platformAdminAuth"],
335
+ resetTestClock: ["apiKeyAuth"],
336
+ resolvePlatformCredential: ["platformAdminAuth"],
311
337
  returnFloat: ["managerAuth"],
312
338
  revokeApiKey: ["consoleAuth"],
339
+ revokeMyConsoleSession: ["consoleAuth"],
313
340
  revokePlatformPartnerApiKey: ["platformAdminAuth"],
314
341
  revokeShareToken: ["apiKeyAuth"],
315
342
  rotateApiKey: ["consoleAuth"],
316
343
  rotateWebhookEndpointSecret: ["consoleAuth"],
317
344
  runJourneyStep: ["apiKeyAuth"],
318
345
  saveCloseoutHandover: ["managerAuth"],
346
+ sendCommsTestMessage: ["apiKeyAuth"],
319
347
  sendMessage: ["apiKeyAuth"],
320
348
  setPlatformPartnerStatus: ["platformAdminAuth"],
321
349
  shareListForms: ["shareAuth"],
@@ -327,6 +355,8 @@ var OPERATION_SECURITY = {
327
355
  syncPullTrip: ["managerAuth", "apiKeyAuth"],
328
356
  syncPush: ["managerAuth", "apiKeyAuth"],
329
357
  syncPushShare: [],
358
+ testCommsProviderCredential: ["apiKeyAuth"],
359
+ testWebhookEndpoint: ["consoleAuth"],
330
360
  toggleChecklistItem: ["managerAuth"],
331
361
  unarchiveForm: ["apiKeyAuth", "agencyAdminAuth"],
332
362
  unassignManager: ["apiKeyAuth"],
@@ -345,7 +375,9 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
345
375
  acceptPlatformAdminInvite: true,
346
376
  addChecklistItem: true,
347
377
  addItineraryItem: true,
378
+ addPlatformIncidentUpdate: false,
348
379
  adjustFloat: true,
380
+ advanceTestTime: false,
349
381
  archiveForm: false,
350
382
  assignManager: true,
351
383
  assignPickupTraveller: true,
@@ -354,8 +386,10 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
354
386
  autoAssignRooming: true,
355
387
  autoAssignSeating: true,
356
388
  boardPickupTraveller: true,
389
+ buildTestFixtures: false,
357
390
  bulkUpsertBookings: true,
358
391
  cancelTrip: true,
392
+ changeMyConsolePassword: true,
359
393
  changeOwnPlatformPassword: false,
360
394
  claimStatusIngest: true,
361
395
  cloneForm: true,
@@ -365,7 +399,9 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
365
399
  consoleLogin: false,
366
400
  consoleLogout: false,
367
401
  consoleSwitchPlane: false,
402
+ copyAgencyEntitlement: true,
368
403
  createApiKey: true,
404
+ createCommsProviderCredential: true,
369
405
  createConsoleUser: true,
370
406
  createForm: true,
371
407
  createFormField: false,
@@ -373,6 +409,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
373
409
  createMessageTemplate: true,
374
410
  createPickupStop: true,
375
411
  createPlatformAdmin: false,
412
+ createPlatformIncident: false,
376
413
  createPlatformPartner: false,
377
414
  createPlatformPartnerConsoleUser: false,
378
415
  createRoomingRoom: true,
@@ -418,7 +455,6 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
418
455
  listBookings: false,
419
456
  listChecklistTemplates: false,
420
457
  listCollections: false,
421
- listConsoleTrips: false,
422
458
  listConsoleUsers: false,
423
459
  listEligibleCollections: false,
424
460
  listEvents: false,
@@ -426,14 +462,20 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
426
462
  listFormBindings: false,
427
463
  listForms: false,
428
464
  listJourneyTriggers: false,
465
+ listJourneyTriggersConsole: false,
429
466
  listManagerNotifications: false,
430
467
  listMessages: false,
468
+ listMessagesConsole: false,
431
469
  listMessageTemplates: false,
470
+ listMyConsoleSessions: false,
432
471
  listPickupStops: false,
433
472
  listPlatformAdmins: false,
473
+ listPlatformAudit: false,
474
+ listPlatformIncidents: false,
434
475
  listPlatformPartnerApiKeys: false,
435
476
  listPlatformPartnerConsoleUsers: false,
436
477
  listPlatformPartners: false,
478
+ listPlatformPlanTiers: false,
437
479
  listRoomingStayWindows: false,
438
480
  listSupportIngestLog: false,
439
481
  listSupportWebhookDeliveries: false,
@@ -441,6 +483,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
441
483
  listTripForms: false,
442
484
  listTripVendors: false,
443
485
  listWebhookDeliveries: false,
486
+ listWebhookDeliveriesConsole: false,
444
487
  listWebhookEndpoints: false,
445
488
  lockCloseout: true,
446
489
  logExpense: true,
@@ -449,6 +492,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
449
492
  mintAgencyAdminTokens: false,
450
493
  mintManagerTokens: false,
451
494
  mintShareToken: true,
495
+ nudgeConsoleInvite: false,
452
496
  patchAgencyEntitlement: true,
453
497
  patchChecklistItem: false,
454
498
  patchConsoleUser: true,
@@ -458,6 +502,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
458
502
  patchItineraryDay: false,
459
503
  patchItineraryItem: false,
460
504
  patchJourneyTrigger: true,
505
+ patchJourneyTriggerConsole: true,
461
506
  patchMessageTemplate: false,
462
507
  patchPickupStop: false,
463
508
  patchPlatformAdmin: false,
@@ -466,10 +511,12 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
466
511
  patchRoomingStayWindow: false,
467
512
  patchSeatingVehicle: false,
468
513
  patchShareToken: false,
514
+ platformHealth: false,
469
515
  platformLogin: true,
470
516
  platformLogout: false,
471
517
  platformMe: false,
472
518
  platformRefreshTokens: true,
519
+ platformWebhookHealth: false,
473
520
  postponeTrek: true,
474
521
  publishForm: false,
475
522
  pullChecklistTemplate: true,
@@ -477,6 +524,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
477
524
  pushManifest: true,
478
525
  pushTripBalances: true,
479
526
  putCommsConfig: false,
527
+ putCommsConfigConsole: false,
480
528
  putPlatformPartnerPlan: false,
481
529
  readAgencyEntitlement: false,
482
530
  readAgencyFeedbackSummary: false,
@@ -484,12 +532,10 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
484
532
  readChecklistAggregate: false,
485
533
  readCloseout: false,
486
534
  readCommsConfig: false,
535
+ readCommsConfigConsole: false,
487
536
  readConsoleAudit: false,
488
- readConsoleChecklist: false,
489
- readConsoleItinerary: false,
490
- readConsolePickups: false,
491
- readConsoleRooming: false,
492
- readConsoleSeating: false,
537
+ readConsoleCertification: false,
538
+ readConsoleMe: false,
493
539
  readConsoleUserInvite: false,
494
540
  readEndpointDeliveries: false,
495
541
  readEndpointDelivery: false,
@@ -500,6 +546,7 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
500
546
  readFloatLedger: false,
501
547
  readFloatSummary: false,
502
548
  readIngestLog: false,
549
+ readIngestLogSummary: false,
503
550
  readItinerary: false,
504
551
  readItineraryChangeLog: false,
505
552
  readJourney: false,
@@ -512,16 +559,22 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
512
559
  readShareToken: false,
513
560
  readSupportJourneyState: false,
514
561
  readSupportWebhookDeliveryDetail: false,
562
+ readTenantDefaultCommsConfig: false,
563
+ readTestClock: false,
564
+ readTestQuota: false,
515
565
  readTrekBoard: false,
516
566
  readTrekWalkInMeta: false,
517
567
  readTripFeedbackSummary: false,
518
568
  readUsage: false,
519
569
  readWebhookDelivery: false,
570
+ readWebhookDeliveryConsole: false,
520
571
  readWebhookEndpoint: false,
572
+ readWebhookEventCatalog: false,
521
573
  rebuildJourney: true,
522
574
  recordCollection: true,
523
575
  redeliverEndpointDelivery: true,
524
576
  redeliverWebhookDelivery: true,
577
+ redeliverWebhookDeliveryConsole: true,
525
578
  redriveSupportWebhookDelivery: false,
526
579
  refreshAgencyAdminTokens: false,
527
580
  refreshManagerTokens: false,
@@ -540,16 +593,21 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
540
593
  replaceBookingVouchers: false,
541
594
  replaySupportWebhookRange: false,
542
595
  replayWebhookEndpoint: true,
596
+ replayWebhookEndpointConsole: true,
543
597
  requestFileUpload: true,
544
598
  resetPlatformPartnerConsoleUser: false,
599
+ resetTestClock: false,
600
+ resolvePlatformCredential: false,
545
601
  returnFloat: true,
546
602
  revokeApiKey: true,
603
+ revokeMyConsoleSession: true,
547
604
  revokePlatformPartnerApiKey: false,
548
605
  revokeShareToken: false,
549
606
  rotateApiKey: true,
550
607
  rotateWebhookEndpointSecret: true,
551
608
  runJourneyStep: true,
552
609
  saveCloseoutHandover: true,
610
+ sendCommsTestMessage: true,
553
611
  sendMessage: true,
554
612
  setPlatformPartnerStatus: false,
555
613
  shareListForms: false,
@@ -561,6 +619,8 @@ var OPERATION_ACCEPTS_IDEMPOTENCY_KEY = {
561
619
  syncPullTrip: false,
562
620
  syncPush: false,
563
621
  syncPushShare: false,
622
+ testCommsProviderCredential: true,
623
+ testWebhookEndpoint: false,
564
624
  toggleChecklistItem: true,
565
625
  unarchiveForm: false,
566
626
  unassignManager: true,
@@ -615,6 +675,9 @@ var KaafilErrorCode = {
615
675
  SupportGrantRequired: "SUPPORT_GRANT_REQUIRED",
616
676
  SyncTargetRefused: "SYNC_TARGET_REFUSED",
617
677
  TenantScopeMissing: "TENANT_SCOPE_MISSING",
678
+ TestClockBackwards: "TEST_CLOCK_BACKWARDS",
679
+ TestFixtureScenarioUnknown: "TEST_FIXTURE_SCENARIO_UNKNOWN",
680
+ TestTripLimit: "TEST_TRIP_LIMIT",
618
681
  Unauthenticated: "UNAUTHENTICATED",
619
682
  UploadMismatch: "UPLOAD_MISMATCH",
620
683
  ValidationError: "VALIDATION_ERROR"
@@ -669,6 +732,9 @@ var ERROR_CODE_TABLE = {
669
732
  SUPPORT_GRANT_REQUIRED: { status: 403, retryability: "no", outboxClass: "FATAL" },
670
733
  SYNC_TARGET_REFUSED: { status: 422, retryability: "no", outboxClass: "FATAL" },
671
734
  TENANT_SCOPE_MISSING: { status: 500, retryability: "yes", outboxClass: "TRANSIENT" },
735
+ TEST_CLOCK_BACKWARDS: { status: 422, retryability: "no", outboxClass: "FATAL" },
736
+ TEST_FIXTURE_SCENARIO_UNKNOWN: { status: 422, retryability: "no", outboxClass: "FATAL" },
737
+ TEST_TRIP_LIMIT: { status: 422, retryability: "no", outboxClass: "FATAL" },
672
738
  UNAUTHENTICATED: { status: 401, retryability: "after-refresh", outboxClass: "FATAL" },
673
739
  UPLOAD_MISMATCH: { status: 422, retryability: "no", outboxClass: "FATAL" },
674
740
  VALIDATION_ERROR: { status: 422, retryability: "no", outboxClass: "FATAL" }