@closerplatform/spinner-openapi 0.12.1044 → 0.12.1046

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",
@@ -1302,6 +1304,31 @@ export interface Call {
1302
1304
  */
1303
1305
  recordingEnabled: boolean;
1304
1306
  }
1307
+ /**
1308
+ *
1309
+ * @export
1310
+ * @interface CallPaging
1311
+ */
1312
+ export interface CallPaging {
1313
+ /**
1314
+ * Page of calls
1315
+ * @type {Array<Call>}
1316
+ * @memberof CallPaging
1317
+ */
1318
+ items: Array<Call>;
1319
+ /**
1320
+ * Timestamp to use as `afterCreated` for the next page
1321
+ * @type {Date}
1322
+ * @memberof CallPaging
1323
+ */
1324
+ nextTimestamp?: Date;
1325
+ /**
1326
+ * ID to use as `afterId` for the next page
1327
+ * @type {string}
1328
+ * @memberof CallPaging
1329
+ */
1330
+ nextId?: string;
1331
+ }
1305
1332
  /**
1306
1333
  *
1307
1334
  * @export
@@ -5198,6 +5225,61 @@ export interface OrganizationLimits {
5198
5225
  */
5199
5226
  callMaxDuration?: number;
5200
5227
  }
5228
+ /**
5229
+ *
5230
+ * @export
5231
+ * @interface PageResult
5232
+ */
5233
+ export interface PageResult {
5234
+ /**
5235
+ * Current page number (1-based)
5236
+ * @type {number}
5237
+ * @memberof PageResult
5238
+ */
5239
+ page: number;
5240
+ /**
5241
+ * Number of items per page
5242
+ * @type {number}
5243
+ * @memberof PageResult
5244
+ */
5245
+ pageSize: number;
5246
+ /**
5247
+ * Total number of items across all pages
5248
+ * @type {number}
5249
+ * @memberof PageResult
5250
+ */
5251
+ total: number;
5252
+ /**
5253
+ * 1-based index of the first item in this page
5254
+ * @type {number}
5255
+ * @memberof PageResult
5256
+ */
5257
+ startIndex: number;
5258
+ /**
5259
+ * 1-based index of the last item in this page
5260
+ * @type {number}
5261
+ * @memberof PageResult
5262
+ */
5263
+ endIndex: number;
5264
+ /**
5265
+ * True if there is a previous page
5266
+ * @type {boolean}
5267
+ * @memberof PageResult
5268
+ */
5269
+ hasPrevious: boolean;
5270
+ /**
5271
+ * True if there is a next page
5272
+ * @type {boolean}
5273
+ * @memberof PageResult
5274
+ */
5275
+ hasNext: boolean;
5276
+ /**
5277
+ * Page of items
5278
+ * @type {Array<any>}
5279
+ * @memberof PageResult
5280
+ */
5281
+ items: Array<any>;
5282
+ }
5201
5283
  /**
5202
5284
  *
5203
5285
  * @export
@@ -8590,6 +8672,16 @@ export declare const CallsApiFetchParamCreator: (configuration?: Configuration)
8590
8672
  * @throws {RequiredError}
8591
8673
  */
8592
8674
  createCall(body: CreateCall, X_Device_Id: string, options?: any): FetchArgs;
8675
+ /**
8676
+ *
8677
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
8678
+ * @param {number} [limit] Maximum number of items to return (default 20)
8679
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
8680
+ * @param {string} [afterId] ID cursor of the last item returned
8681
+ * @param {*} [options] Override http request option.
8682
+ * @throws {RequiredError}
8683
+ */
8684
+ getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): FetchArgs;
8593
8685
  };
8594
8686
  /**
8595
8687
  * CallsApi - functional programming interface
@@ -8605,6 +8697,16 @@ export declare const CallsApiFp: (configuration?: Configuration) => {
8605
8697
  * @throws {RequiredError}
8606
8698
  */
8607
8699
  createCall(body: CreateCall, X_Device_Id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Call>;
8700
+ /**
8701
+ *
8702
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
8703
+ * @param {number} [limit] Maximum number of items to return (default 20)
8704
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
8705
+ * @param {string} [afterId] ID cursor of the last item returned
8706
+ * @param {*} [options] Override http request option.
8707
+ * @throws {RequiredError}
8708
+ */
8709
+ getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CallPaging>;
8608
8710
  };
8609
8711
  /**
8610
8712
  * CallsApi - factory interface
@@ -8620,6 +8722,16 @@ export declare const CallsApiFactory: (configuration?: Configuration, fetch?: Fe
8620
8722
  * @throws {RequiredError}
8621
8723
  */
8622
8724
  createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
8725
+ /**
8726
+ *
8727
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
8728
+ * @param {number} [limit] Maximum number of items to return (default 20)
8729
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
8730
+ * @param {string} [afterId] ID cursor of the last item returned
8731
+ * @param {*} [options] Override http request option.
8732
+ * @throws {RequiredError}
8733
+ */
8734
+ getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): Promise<CallPaging>;
8623
8735
  };
8624
8736
  /**
8625
8737
  * CallsApi - object-oriented interface
@@ -8638,6 +8750,17 @@ export declare class CallsApi extends BaseAPI {
8638
8750
  * @memberof CallsApi
8639
8751
  */
8640
8752
  createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
8753
+ /**
8754
+ *
8755
+ * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
8756
+ * @param {number} [limit] Maximum number of items to return (default 20)
8757
+ * @param {number} [afterCreated] timestamp cursor of the last item returned
8758
+ * @param {string} [afterId] ID cursor of the last item returned
8759
+ * @param {*} [options] Override http request option.
8760
+ * @throws {RequiredError}
8761
+ * @memberof CallsApi
8762
+ */
8763
+ getCalls(limit?: number, afterCreated?: number, afterId?: string, options?: any): Promise<CallPaging>;
8641
8764
  }
8642
8765
  /**
8643
8766
  * 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.1046",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [