ob-bms-sdk 0.0.7 → 0.0.9

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.
@@ -1,5 +1,6 @@
1
1
  .gitignore
2
2
  .npmignore
3
+ .openapi-generator-ignore
3
4
  api.ts
4
5
  base.ts
5
6
  common.ts
package/api/api.ts CHANGED
@@ -106,6 +106,19 @@ export interface DestroyFSMembers {
106
106
  */
107
107
  'member_ids': Array<string>;
108
108
  }
109
+ /**
110
+ *
111
+ * @export
112
+ * @interface FindMemberResult
113
+ */
114
+ export interface FindMemberResult {
115
+ /**
116
+ *
117
+ * @type {boolean}
118
+ * @memberof FindMemberResult
119
+ */
120
+ 'result': boolean;
121
+ }
109
122
  /**
110
123
  *
111
124
  * @export
@@ -314,6 +327,32 @@ export interface WrappedResponseCreateVisitorResponseData {
314
327
  */
315
328
  'name': string;
316
329
  }
330
+ /**
331
+ *
332
+ * @export
333
+ * @interface WrappedResponseFindMemberResult
334
+ */
335
+ export interface WrappedResponseFindMemberResult {
336
+ /**
337
+ *
338
+ * @type {WrappedResponseFindMemberResultData}
339
+ * @memberof WrappedResponseFindMemberResult
340
+ */
341
+ 'data': WrappedResponseFindMemberResultData;
342
+ }
343
+ /**
344
+ *
345
+ * @export
346
+ * @interface WrappedResponseFindMemberResultData
347
+ */
348
+ export interface WrappedResponseFindMemberResultData {
349
+ /**
350
+ *
351
+ * @type {boolean}
352
+ * @memberof WrappedResponseFindMemberResultData
353
+ */
354
+ 'result': boolean;
355
+ }
317
356
  /**
318
357
  *
319
358
  * @export
@@ -460,10 +499,13 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
460
499
  },
461
500
  /**
462
501
  *
502
+ * @param {string} identifier
463
503
  * @param {*} [options] Override http request option.
464
504
  * @throws {RequiredError}
465
505
  */
466
- membersIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
506
+ membersIndex: async (identifier: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
507
+ // verify required parameter 'identifier' is not null or undefined
508
+ assertParamExists('membersIndex', 'identifier', identifier)
467
509
  const localVarPath = `/members`;
468
510
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
469
511
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -476,6 +518,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
476
518
  const localVarHeaderParameter = {} as any;
477
519
  const localVarQueryParameter = {} as any;
478
520
 
521
+ if (identifier !== undefined) {
522
+ localVarQueryParameter['identifier'] = identifier;
523
+ }
524
+
479
525
 
480
526
 
481
527
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -632,11 +678,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
632
678
  },
633
679
  /**
634
680
  *
681
+ * @param {string} identifier
635
682
  * @param {*} [options] Override http request option.
636
683
  * @throws {RequiredError}
637
684
  */
638
- async membersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
639
- const localVarAxiosArgs = await localVarAxiosParamCreator.membersIndex(options);
685
+ async membersIndex(identifier: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResult>> {
686
+ const localVarAxiosArgs = await localVarAxiosParamCreator.membersIndex(identifier, options);
640
687
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
641
688
  },
642
689
  /**
@@ -708,11 +755,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
708
755
  },
709
756
  /**
710
757
  *
758
+ * @param {string} identifier
711
759
  * @param {*} [options] Override http request option.
712
760
  * @throws {RequiredError}
713
761
  */
714
- membersIndex(options?: any): AxiosPromise<void> {
715
- return localVarFp.membersIndex(options).then((request) => request(axios, basePath));
762
+ membersIndex(identifier: string, options?: any): AxiosPromise<WrappedResponseFindMemberResult> {
763
+ return localVarFp.membersIndex(identifier, options).then((request) => request(axios, basePath));
716
764
  },
717
765
  /**
718
766
  *
@@ -786,12 +834,13 @@ export class DefaultApi extends BaseAPI {
786
834
 
787
835
  /**
788
836
  *
837
+ * @param {string} identifier
789
838
  * @param {*} [options] Override http request option.
790
839
  * @throws {RequiredError}
791
840
  * @memberof DefaultApi
792
841
  */
793
- public membersIndex(options?: AxiosRequestConfig) {
794
- return DefaultApiFp(this.configuration).membersIndex(options).then((request) => request(this.axios, this.basePath));
842
+ public membersIndex(identifier: string, options?: AxiosRequestConfig) {
843
+ return DefaultApiFp(this.configuration).membersIndex(identifier, options).then((request) => request(this.axios, this.basePath));
795
844
  }
796
845
 
797
846
  /**
package/dist/api/api.d.ts CHANGED
@@ -96,6 +96,19 @@ export interface DestroyFSMembers {
96
96
  */
97
97
  'member_ids': Array<string>;
98
98
  }
99
+ /**
100
+ *
101
+ * @export
102
+ * @interface FindMemberResult
103
+ */
104
+ export interface FindMemberResult {
105
+ /**
106
+ *
107
+ * @type {boolean}
108
+ * @memberof FindMemberResult
109
+ */
110
+ 'result': boolean;
111
+ }
99
112
  /**
100
113
  *
101
114
  * @export
@@ -304,6 +317,32 @@ export interface WrappedResponseCreateVisitorResponseData {
304
317
  */
305
318
  'name': string;
306
319
  }
320
+ /**
321
+ *
322
+ * @export
323
+ * @interface WrappedResponseFindMemberResult
324
+ */
325
+ export interface WrappedResponseFindMemberResult {
326
+ /**
327
+ *
328
+ * @type {WrappedResponseFindMemberResultData}
329
+ * @memberof WrappedResponseFindMemberResult
330
+ */
331
+ 'data': WrappedResponseFindMemberResultData;
332
+ }
333
+ /**
334
+ *
335
+ * @export
336
+ * @interface WrappedResponseFindMemberResultData
337
+ */
338
+ export interface WrappedResponseFindMemberResultData {
339
+ /**
340
+ *
341
+ * @type {boolean}
342
+ * @memberof WrappedResponseFindMemberResultData
343
+ */
344
+ 'result': boolean;
345
+ }
307
346
  /**
308
347
  *
309
348
  * @export
@@ -364,10 +403,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
364
403
  integrationsFsMembersDelete: (destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) => Promise<RequestArgs>;
365
404
  /**
366
405
  *
406
+ * @param {string} identifier
367
407
  * @param {*} [options] Override http request option.
368
408
  * @throws {RequiredError}
369
409
  */
370
- membersIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
410
+ membersIndex: (identifier: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
371
411
  /**
372
412
  *
373
413
  * @param {SyncBody} syncBody
@@ -418,10 +458,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
418
458
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
419
459
  /**
420
460
  *
461
+ * @param {string} identifier
421
462
  * @param {*} [options] Override http request option.
422
463
  * @throws {RequiredError}
423
464
  */
424
- membersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
465
+ membersIndex(identifier: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResult>>;
425
466
  /**
426
467
  *
427
468
  * @param {SyncBody} syncBody
@@ -472,10 +513,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
472
513
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<void>;
473
514
  /**
474
515
  *
516
+ * @param {string} identifier
475
517
  * @param {*} [options] Override http request option.
476
518
  * @throws {RequiredError}
477
519
  */
478
- membersIndex(options?: any): AxiosPromise<void>;
520
+ membersIndex(identifier: string, options?: any): AxiosPromise<WrappedResponseFindMemberResult>;
479
521
  /**
480
522
  *
481
523
  * @param {SyncBody} syncBody
@@ -531,11 +573,12 @@ export declare class DefaultApi extends BaseAPI {
531
573
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
532
574
  /**
533
575
  *
576
+ * @param {string} identifier
534
577
  * @param {*} [options] Override http request option.
535
578
  * @throws {RequiredError}
536
579
  * @memberof DefaultApi
537
580
  */
538
- membersIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
581
+ membersIndex(identifier: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseFindMemberResult, any>>;
539
582
  /**
540
583
  *
541
584
  * @param {SyncBody} syncBody
package/dist/api/api.js CHANGED
@@ -127,10 +127,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
127
127
  }),
128
128
  /**
129
129
  *
130
+ * @param {string} identifier
130
131
  * @param {*} [options] Override http request option.
131
132
  * @throws {RequiredError}
132
133
  */
133
- membersIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
134
+ membersIndex: (identifier, options = {}) => __awaiter(this, void 0, void 0, function* () {
135
+ // verify required parameter 'identifier' is not null or undefined
136
+ (0, common_1.assertParamExists)('membersIndex', 'identifier', identifier);
134
137
  const localVarPath = `/members`;
135
138
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
139
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -141,6 +144,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
141
144
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
142
145
  const localVarHeaderParameter = {};
143
146
  const localVarQueryParameter = {};
147
+ if (identifier !== undefined) {
148
+ localVarQueryParameter['identifier'] = identifier;
149
+ }
144
150
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
145
151
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
152
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -283,12 +289,13 @@ const DefaultApiFp = function (configuration) {
283
289
  },
284
290
  /**
285
291
  *
292
+ * @param {string} identifier
286
293
  * @param {*} [options] Override http request option.
287
294
  * @throws {RequiredError}
288
295
  */
289
- membersIndex(options) {
296
+ membersIndex(identifier, options) {
290
297
  return __awaiter(this, void 0, void 0, function* () {
291
- const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(options);
298
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(identifier, options);
292
299
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
293
300
  });
294
301
  },
@@ -367,11 +374,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
367
374
  },
368
375
  /**
369
376
  *
377
+ * @param {string} identifier
370
378
  * @param {*} [options] Override http request option.
371
379
  * @throws {RequiredError}
372
380
  */
373
- membersIndex(options) {
374
- return localVarFp.membersIndex(options).then((request) => request(axios, basePath));
381
+ membersIndex(identifier, options) {
382
+ return localVarFp.membersIndex(identifier, options).then((request) => request(axios, basePath));
375
383
  },
376
384
  /**
377
385
  *
@@ -442,12 +450,13 @@ class DefaultApi extends base_1.BaseAPI {
442
450
  }
443
451
  /**
444
452
  *
453
+ * @param {string} identifier
445
454
  * @param {*} [options] Override http request option.
446
455
  * @throws {RequiredError}
447
456
  * @memberof DefaultApi
448
457
  */
449
- membersIndex(options) {
450
- return (0, exports.DefaultApiFp)(this.configuration).membersIndex(options).then((request) => request(this.axios, this.basePath));
458
+ membersIndex(identifier, options) {
459
+ return (0, exports.DefaultApiFp)(this.configuration).membersIndex(identifier, options).then((request) => request(this.axios, this.basePath));
451
460
  }
452
461
  /**
453
462
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"
package/dist/test.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/test.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- () => __awaiter(void 0, void 0, void 0, function* () { });