@closerplatform/spinner-openapi 0.12.1044 → 0.12.1047

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/api.d.ts CHANGED
@@ -807,6 +807,8 @@ export declare enum AppPermission {
807
807
  DisplayFollowedConversations = "display_followed_conversations",
808
808
  DisplayInProgressConversations = "display_in_progress_conversations",
809
809
  DisplayYoursConversations = "display_yours_conversations",
810
+ DisplayCalls = "display_calls",
811
+ DisplayCallRecordings = "display_call_recordings",
810
812
  SettingsProactiveMessages = "settings_proactive_messages",
811
813
  SettingsTags = "settings_tags",
812
814
  SettingsAiSuggestions = "settings_ai_suggestions",
@@ -1265,6 +1267,12 @@ export interface Call {
1265
1267
  * @memberof Call
1266
1268
  */
1267
1269
  id: string;
1270
+ /**
1271
+ *
1272
+ * @type {string}
1273
+ * @memberof Call
1274
+ */
1275
+ roomId: string;
1268
1276
  /**
1269
1277
  *
1270
1278
  * @type {number}
@@ -1302,6 +1310,31 @@ export interface Call {
1302
1310
  */
1303
1311
  recordingEnabled: boolean;
1304
1312
  }
1313
+ /**
1314
+ *
1315
+ * @export
1316
+ * @interface CallPaging
1317
+ */
1318
+ export interface CallPaging {
1319
+ /**
1320
+ * Page of calls
1321
+ * @type {Array<Call>}
1322
+ * @memberof CallPaging
1323
+ */
1324
+ items: Array<Call>;
1325
+ /**
1326
+ * Timestamp to use as `afterCreated` for the next page
1327
+ * @type {number}
1328
+ * @memberof CallPaging
1329
+ */
1330
+ nextTimestamp?: number;
1331
+ /**
1332
+ * ID to use as `afterId` for the next page
1333
+ * @type {string}
1334
+ * @memberof CallPaging
1335
+ */
1336
+ nextId?: string;
1337
+ }
1305
1338
  /**
1306
1339
  *
1307
1340
  * @export
@@ -5198,6 +5231,61 @@ export interface OrganizationLimits {
5198
5231
  */
5199
5232
  callMaxDuration?: number;
5200
5233
  }
5234
+ /**
5235
+ *
5236
+ * @export
5237
+ * @interface PageResult
5238
+ */
5239
+ export interface PageResult {
5240
+ /**
5241
+ * Current page number (1-based)
5242
+ * @type {number}
5243
+ * @memberof PageResult
5244
+ */
5245
+ page: number;
5246
+ /**
5247
+ * Number of items per page
5248
+ * @type {number}
5249
+ * @memberof PageResult
5250
+ */
5251
+ pageSize: number;
5252
+ /**
5253
+ * Total number of items across all pages
5254
+ * @type {number}
5255
+ * @memberof PageResult
5256
+ */
5257
+ total: number;
5258
+ /**
5259
+ * 1-based index of the first item in this page
5260
+ * @type {number}
5261
+ * @memberof PageResult
5262
+ */
5263
+ startIndex: number;
5264
+ /**
5265
+ * 1-based index of the last item in this page
5266
+ * @type {number}
5267
+ * @memberof PageResult
5268
+ */
5269
+ endIndex: number;
5270
+ /**
5271
+ * True if there is a previous page
5272
+ * @type {boolean}
5273
+ * @memberof PageResult
5274
+ */
5275
+ hasPrevious: boolean;
5276
+ /**
5277
+ * True if there is a next page
5278
+ * @type {boolean}
5279
+ * @memberof PageResult
5280
+ */
5281
+ hasNext: boolean;
5282
+ /**
5283
+ * Page of items
5284
+ * @type {Array<any>}
5285
+ * @memberof PageResult
5286
+ */
5287
+ items: Array<any>;
5288
+ }
5201
5289
  /**
5202
5290
  *
5203
5291
  * @export
@@ -8590,6 +8678,16 @@ export declare const CallsApiFetchParamCreator: (configuration?: Configuration)
8590
8678
  * @throws {RequiredError}
8591
8679
  */
8592
8680
  createCall(body: CreateCall, X_Device_Id: string, options?: any): FetchArgs;
8681
+ /**
8682
+ *
8683
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
8684
+ * @param {number} [limit] Maximum number of items to return (default 20)
8685
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
8686
+ * @param {string} [afterId] ID cursor of the last item returned
8687
+ * @param {*} [options] Override http request option.
8688
+ * @throws {RequiredError}
8689
+ */
8690
+ getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): FetchArgs;
8593
8691
  };
8594
8692
  /**
8595
8693
  * CallsApi - functional programming interface
@@ -8605,6 +8703,16 @@ export declare const CallsApiFp: (configuration?: Configuration) => {
8605
8703
  * @throws {RequiredError}
8606
8704
  */
8607
8705
  createCall(body: CreateCall, X_Device_Id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Call>;
8706
+ /**
8707
+ *
8708
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
8709
+ * @param {number} [limit] Maximum number of items to return (default 20)
8710
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
8711
+ * @param {string} [afterId] ID cursor of the last item returned
8712
+ * @param {*} [options] Override http request option.
8713
+ * @throws {RequiredError}
8714
+ */
8715
+ getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CallPaging>;
8608
8716
  };
8609
8717
  /**
8610
8718
  * CallsApi - factory interface
@@ -8620,6 +8728,16 @@ export declare const CallsApiFactory: (configuration?: Configuration, fetch?: Fe
8620
8728
  * @throws {RequiredError}
8621
8729
  */
8622
8730
  createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
8731
+ /**
8732
+ *
8733
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
8734
+ * @param {number} [limit] Maximum number of items to return (default 20)
8735
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
8736
+ * @param {string} [afterId] ID cursor of the last item returned
8737
+ * @param {*} [options] Override http request option.
8738
+ * @throws {RequiredError}
8739
+ */
8740
+ getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): Promise<CallPaging>;
8623
8741
  };
8624
8742
  /**
8625
8743
  * CallsApi - object-oriented interface
@@ -8638,6 +8756,17 @@ export declare class CallsApi extends BaseAPI {
8638
8756
  * @memberof CallsApi
8639
8757
  */
8640
8758
  createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
8759
+ /**
8760
+ *
8761
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
8762
+ * @param {number} [limit] Maximum number of items to return (default 20)
8763
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
8764
+ * @param {string} [afterId] ID cursor of the last item returned
8765
+ * @param {*} [options] Override http request option.
8766
+ * @throws {RequiredError}
8767
+ * @memberof CallsApi
8768
+ */
8769
+ getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): Promise<CallPaging>;
8641
8770
  }
8642
8771
  /**
8643
8772
  * CobrowsingApi - fetch parameter creator
package/dist/api.js CHANGED
@@ -73,6 +73,8 @@ var AppPermission;
73
73
  AppPermission["DisplayFollowedConversations"] = "display_followed_conversations";
74
74
  AppPermission["DisplayInProgressConversations"] = "display_in_progress_conversations";
75
75
  AppPermission["DisplayYoursConversations"] = "display_yours_conversations";
76
+ AppPermission["DisplayCalls"] = "display_calls";
77
+ AppPermission["DisplayCallRecordings"] = "display_call_recordings";
76
78
  AppPermission["SettingsProactiveMessages"] = "settings_proactive_messages";
77
79
  AppPermission["SettingsTags"] = "settings_tags";
78
80
  AppPermission["SettingsAiSuggestions"] = "settings_ai_suggestions";
@@ -3341,6 +3343,53 @@ const CallsApiFetchParamCreator = function (configuration) {
3341
3343
  options: localVarRequestOptions,
3342
3344
  };
3343
3345
  },
3346
+ /**
3347
+ *
3348
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
3349
+ * @param {number} [limit] Maximum number of items to return (default 20)
3350
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
3351
+ * @param {string} [afterId] ID cursor of the last item returned
3352
+ * @param {*} [options] Override http request option.
3353
+ * @throws {RequiredError}
3354
+ */
3355
+ getCalls(limit, afterCreated, afterId, options = {}) {
3356
+ const localVarPath = `/calls`;
3357
+ const localVarUrlObj = url.parse(localVarPath, true);
3358
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
3359
+ const localVarHeaderParameter = {};
3360
+ const localVarQueryParameter = {};
3361
+ // authentication apiKey required
3362
+ if (configuration && configuration.apiKey) {
3363
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
3364
+ ? configuration.apiKey("X-Api-Key")
3365
+ : configuration.apiKey;
3366
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
3367
+ }
3368
+ // authentication fingerprintAuth required
3369
+ if (configuration && configuration.apiKey) {
3370
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
3371
+ ? configuration.apiKey("X-Fingerprint")
3372
+ : configuration.apiKey;
3373
+ localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
3374
+ }
3375
+ if (limit !== undefined) {
3376
+ localVarQueryParameter['limit'] = limit;
3377
+ }
3378
+ if (afterCreated !== undefined) {
3379
+ localVarQueryParameter['afterCreated'] = afterCreated;
3380
+ }
3381
+ if (afterId !== undefined) {
3382
+ localVarQueryParameter['afterId'] = afterId;
3383
+ }
3384
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
3385
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
3386
+ delete localVarUrlObj.search;
3387
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
3388
+ return {
3389
+ url: url.format(localVarUrlObj),
3390
+ options: localVarRequestOptions,
3391
+ };
3392
+ },
3344
3393
  };
3345
3394
  };
3346
3395
  exports.CallsApiFetchParamCreator = CallsApiFetchParamCreator;
@@ -3371,6 +3420,28 @@ const CallsApiFp = function (configuration) {
3371
3420
  });
3372
3421
  };
3373
3422
  },
3423
+ /**
3424
+ *
3425
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
3426
+ * @param {number} [limit] Maximum number of items to return (default 20)
3427
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
3428
+ * @param {string} [afterId] ID cursor of the last item returned
3429
+ * @param {*} [options] Override http request option.
3430
+ * @throws {RequiredError}
3431
+ */
3432
+ getCalls(limit, afterCreated, afterId, options) {
3433
+ const localVarFetchArgs = (0, exports.CallsApiFetchParamCreator)(configuration).getCalls(limit, afterCreated, afterId, options);
3434
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
3435
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
3436
+ if (response.status >= 200 && response.status < 300) {
3437
+ return response.json();
3438
+ }
3439
+ else {
3440
+ throw response;
3441
+ }
3442
+ });
3443
+ };
3444
+ },
3374
3445
  };
3375
3446
  };
3376
3447
  exports.CallsApiFp = CallsApiFp;
@@ -3391,6 +3462,18 @@ const CallsApiFactory = function (configuration, fetch, basePath) {
3391
3462
  createCall(body, X_Device_Id, options) {
3392
3463
  return (0, exports.CallsApiFp)(configuration).createCall(body, X_Device_Id, options)(fetch, basePath);
3393
3464
  },
3465
+ /**
3466
+ *
3467
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
3468
+ * @param {number} [limit] Maximum number of items to return (default 20)
3469
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
3470
+ * @param {string} [afterId] ID cursor of the last item returned
3471
+ * @param {*} [options] Override http request option.
3472
+ * @throws {RequiredError}
3473
+ */
3474
+ getCalls(limit, afterCreated, afterId, options) {
3475
+ return (0, exports.CallsApiFp)(configuration).getCalls(limit, afterCreated, afterId, options)(fetch, basePath);
3476
+ },
3394
3477
  };
3395
3478
  };
3396
3479
  exports.CallsApiFactory = CallsApiFactory;
@@ -3413,6 +3496,19 @@ class CallsApi extends BaseAPI {
3413
3496
  createCall(body, X_Device_Id, options) {
3414
3497
  return (0, exports.CallsApiFp)(this.configuration).createCall(body, X_Device_Id, options)(this.fetch, this.basePath);
3415
3498
  }
3499
+ /**
3500
+ *
3501
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
3502
+ * @param {number} [limit] Maximum number of items to return (default 20)
3503
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
3504
+ * @param {string} [afterId] ID cursor of the last item returned
3505
+ * @param {*} [options] Override http request option.
3506
+ * @throws {RequiredError}
3507
+ * @memberof CallsApi
3508
+ */
3509
+ getCalls(limit, afterCreated, afterId, options) {
3510
+ return (0, exports.CallsApiFp)(this.configuration).getCalls(limit, afterCreated, afterId, options)(this.fetch, this.basePath);
3511
+ }
3416
3512
  }
3417
3513
  exports.CallsApi = CallsApi;
3418
3514
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.1044",
3
+ "version": "0.12.1047",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [