ob-parking-sdk 0.0.60 → 0.0.62

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/api/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.27.1
7
+ * The version of the OpenAPI document: 1.27.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -666,6 +666,12 @@ export interface CreateReceiptBody {
666
666
  * @interface CreateRegisteredVehicleBody
667
667
  */
668
668
  export interface CreateRegisteredVehicleBody {
669
+ /**
670
+ *
671
+ * @type {boolean}
672
+ * @memberof CreateRegisteredVehicleBody
673
+ */
674
+ 'is_vip'?: boolean;
669
675
  /**
670
676
  *
671
677
  * @type {string}
@@ -693,38 +699,6 @@ export interface CreateRegisteredVehicleBody {
693
699
  }
694
700
 
695
701
 
696
- /**
697
- *
698
- * @export
699
- * @interface CreateVehicleBrandBody
700
- */
701
- export interface CreateVehicleBrandBody {
702
- /**
703
- *
704
- * @type {string}
705
- * @memberof CreateVehicleBrandBody
706
- */
707
- 'name': string;
708
- }
709
- /**
710
- *
711
- * @export
712
- * @interface DeleteVehicleBrandResponse
713
- */
714
- export interface DeleteVehicleBrandResponse {
715
- /**
716
- *
717
- * @type {string}
718
- * @memberof DeleteVehicleBrandResponse
719
- */
720
- 'name': string;
721
- /**
722
- *
723
- * @type {string}
724
- * @memberof DeleteVehicleBrandResponse
725
- */
726
- 'id': string;
727
- }
728
702
  /**
729
703
  *
730
704
  * @export
@@ -3073,19 +3047,6 @@ export interface UpdateRegisteredVehicleBody {
3073
3047
  }
3074
3048
 
3075
3049
 
3076
- /**
3077
- *
3078
- * @export
3079
- * @interface UpdateVehicleBrandBody
3080
- */
3081
- export interface UpdateVehicleBrandBody {
3082
- /**
3083
- *
3084
- * @type {string}
3085
- * @memberof UpdateVehicleBrandBody
3086
- */
3087
- 'name'?: string;
3088
- }
3089
3050
  /**
3090
3051
  *
3091
3052
  * @export
@@ -3149,19 +3110,6 @@ export interface ValidateReceiptImageBody {
3149
3110
  */
3150
3111
  'source': string;
3151
3112
  }
3152
- /**
3153
- *
3154
- * @export
3155
- * @interface VehicleBrandIndexQuery
3156
- */
3157
- export interface VehicleBrandIndexQuery {
3158
- /**
3159
- *
3160
- * @type {string}
3161
- * @memberof VehicleBrandIndexQuery
3162
- */
3163
- 'name'?: string;
3164
- }
3165
3113
  /**
3166
3114
  *
3167
3115
  * @export
@@ -3218,25 +3166,6 @@ export interface VehicleBrandIndexResponseVehicleModelsInner {
3218
3166
  */
3219
3167
  'id'?: string;
3220
3168
  }
3221
- /**
3222
- *
3223
- * @export
3224
- * @interface VehicleBrandResponse
3225
- */
3226
- export interface VehicleBrandResponse {
3227
- /**
3228
- *
3229
- * @type {string}
3230
- * @memberof VehicleBrandResponse
3231
- */
3232
- 'name': string;
3233
- /**
3234
- *
3235
- * @type {string}
3236
- * @memberof VehicleBrandResponse
3237
- */
3238
- 'id': string;
3239
- }
3240
3169
  /**
3241
3170
  *
3242
3171
  * @export
@@ -4931,13 +4860,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4931
4860
  },
4932
4861
  /**
4933
4862
  *
4934
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
4935
4863
  * @param {*} [options] Override http request option.
4936
4864
  * @throws {RequiredError}
4937
4865
  */
4938
- vehicleBrandsCreate: async (createVehicleBrandBody: CreateVehicleBrandBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4939
- // verify required parameter 'createVehicleBrandBody' is not null or undefined
4940
- assertParamExists('vehicleBrandsCreate', 'createVehicleBrandBody', createVehicleBrandBody)
4866
+ vehicleBrandsIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4941
4867
  const localVarPath = `/vehicle-brands`;
4942
4868
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4943
4869
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4946,75 +4872,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4946
4872
  baseOptions = configuration.baseOptions;
4947
4873
  }
4948
4874
 
4949
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4950
- const localVarHeaderParameter = {} as any;
4951
- const localVarQueryParameter = {} as any;
4952
-
4953
-
4954
-
4955
- localVarHeaderParameter['Content-Type'] = 'application/json';
4956
-
4957
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4958
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4959
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4960
- localVarRequestOptions.data = serializeDataIfNeeded(createVehicleBrandBody, localVarRequestOptions, configuration)
4961
-
4962
- return {
4963
- url: toPathString(localVarUrlObj),
4964
- options: localVarRequestOptions,
4965
- };
4966
- },
4967
- /**
4968
- *
4969
- * @param {string} id
4970
- * @param {*} [options] Override http request option.
4971
- * @throws {RequiredError}
4972
- */
4973
- vehicleBrandsDelete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4974
- // verify required parameter 'id' is not null or undefined
4975
- assertParamExists('vehicleBrandsDelete', 'id', id)
4976
- const localVarPath = `/vehicle-brands/{id}`
4977
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4978
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4979
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4980
- let baseOptions;
4981
- if (configuration) {
4982
- baseOptions = configuration.baseOptions;
4983
- }
4984
-
4985
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4986
- const localVarHeaderParameter = {} as any;
4987
- const localVarQueryParameter = {} as any;
4988
-
4989
-
4990
-
4991
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4992
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4993
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4994
-
4995
- return {
4996
- url: toPathString(localVarUrlObj),
4997
- options: localVarRequestOptions,
4998
- };
4999
- },
5000
- /**
5001
- *
5002
- * @param {string} id
5003
- * @param {*} [options] Override http request option.
5004
- * @throws {RequiredError}
5005
- */
5006
- vehicleBrandsGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5007
- // verify required parameter 'id' is not null or undefined
5008
- assertParamExists('vehicleBrandsGet', 'id', id)
5009
- const localVarPath = `/vehicle-brands/{id}`
5010
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
5011
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5012
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5013
- let baseOptions;
5014
- if (configuration) {
5015
- baseOptions = configuration.baseOptions;
5016
- }
5017
-
5018
4875
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5019
4876
  const localVarHeaderParameter = {} as any;
5020
4877
  const localVarQueryParameter = {} as any;
@@ -5032,12 +4889,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
5032
4889
  },
5033
4890
  /**
5034
4891
  *
5035
- * @param {string} [name]
5036
4892
  * @param {*} [options] Override http request option.
5037
4893
  * @throws {RequiredError}
5038
4894
  */
5039
- vehicleBrandsIndex: async (name?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5040
- const localVarPath = `/vehicle-brands`;
4895
+ vipCampaignIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4896
+ const localVarPath = `/vip-campaign`;
5041
4897
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5042
4898
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5043
4899
  let baseOptions;
@@ -5049,10 +4905,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
5049
4905
  const localVarHeaderParameter = {} as any;
5050
4906
  const localVarQueryParameter = {} as any;
5051
4907
 
5052
- if (name !== undefined) {
5053
- localVarQueryParameter['name'] = name;
5054
- }
5055
-
5056
4908
 
5057
4909
 
5058
4910
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5066,18 +4918,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
5066
4918
  },
5067
4919
  /**
5068
4920
  *
5069
- * @param {string} id
5070
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
4921
+ * @param {UpsertCampaign} upsertCampaign
5071
4922
  * @param {*} [options] Override http request option.
5072
4923
  * @throws {RequiredError}
5073
4924
  */
5074
- vehicleBrandsUpdate: async (id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5075
- // verify required parameter 'id' is not null or undefined
5076
- assertParamExists('vehicleBrandsUpdate', 'id', id)
5077
- // verify required parameter 'updateVehicleBrandBody' is not null or undefined
5078
- assertParamExists('vehicleBrandsUpdate', 'updateVehicleBrandBody', updateVehicleBrandBody)
5079
- const localVarPath = `/vehicle-brands/{id}`
5080
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4925
+ vipCampaignUpsert: async (upsertCampaign: UpsertCampaign, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4926
+ // verify required parameter 'upsertCampaign' is not null or undefined
4927
+ assertParamExists('vipCampaignUpsert', 'upsertCampaign', upsertCampaign)
4928
+ const localVarPath = `/vip-campaign`;
5081
4929
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5082
4930
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5083
4931
  let baseOptions;
@@ -5085,7 +4933,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
5085
4933
  baseOptions = configuration.baseOptions;
5086
4934
  }
5087
4935
 
5088
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4936
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5089
4937
  const localVarHeaderParameter = {} as any;
5090
4938
  const localVarQueryParameter = {} as any;
5091
4939
 
@@ -5096,7 +4944,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
5096
4944
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5097
4945
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5098
4946
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5099
- localVarRequestOptions.data = serializeDataIfNeeded(updateVehicleBrandBody, localVarRequestOptions, configuration)
4947
+ localVarRequestOptions.data = serializeDataIfNeeded(upsertCampaign, localVarRequestOptions, configuration)
5100
4948
 
5101
4949
  return {
5102
4950
  url: toPathString(localVarUrlObj),
@@ -5575,53 +5423,30 @@ export const DefaultApiFp = function(configuration?: Configuration) {
5575
5423
  },
5576
5424
  /**
5577
5425
  *
5578
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
5579
5426
  * @param {*} [options] Override http request option.
5580
5427
  * @throws {RequiredError}
5581
5428
  */
5582
- async vehicleBrandsCreate(createVehicleBrandBody: CreateVehicleBrandBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VehicleBrandResponse>> {
5583
- const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleBrandsCreate(createVehicleBrandBody, options);
5429
+ async vehicleBrandsIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VehicleBrandIndexResponse>>> {
5430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleBrandsIndex(options);
5584
5431
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5585
5432
  },
5586
5433
  /**
5587
5434
  *
5588
- * @param {string} id
5589
5435
  * @param {*} [options] Override http request option.
5590
5436
  * @throws {RequiredError}
5591
5437
  */
5592
- async vehicleBrandsDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteVehicleBrandResponse>> {
5593
- const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleBrandsDelete(id, options);
5438
+ async vipCampaignIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CampaignSequenceResponse>> {
5439
+ const localVarAxiosArgs = await localVarAxiosParamCreator.vipCampaignIndex(options);
5594
5440
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5595
5441
  },
5596
5442
  /**
5597
5443
  *
5598
- * @param {string} id
5599
- * @param {*} [options] Override http request option.
5600
- * @throws {RequiredError}
5601
- */
5602
- async vehicleBrandsGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VehicleBrandResponse>> {
5603
- const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleBrandsGet(id, options);
5604
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5605
- },
5606
- /**
5607
- *
5608
- * @param {string} [name]
5609
- * @param {*} [options] Override http request option.
5610
- * @throws {RequiredError}
5611
- */
5612
- async vehicleBrandsIndex(name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VehicleBrandIndexResponse>>> {
5613
- const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleBrandsIndex(name, options);
5614
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5615
- },
5616
- /**
5617
- *
5618
- * @param {string} id
5619
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
5444
+ * @param {UpsertCampaign} upsertCampaign
5620
5445
  * @param {*} [options] Override http request option.
5621
5446
  * @throws {RequiredError}
5622
5447
  */
5623
- async vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VehicleBrandResponse>> {
5624
- const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleBrandsUpdate(id, updateVehicleBrandBody, options);
5448
+ async vipCampaignUpsert(upsertCampaign: UpsertCampaign, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CampaignResponse>>> {
5449
+ const localVarAxiosArgs = await localVarAxiosParamCreator.vipCampaignUpsert(upsertCampaign, options);
5625
5450
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5626
5451
  },
5627
5452
  }
@@ -6056,49 +5881,28 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
6056
5881
  },
6057
5882
  /**
6058
5883
  *
6059
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
6060
5884
  * @param {*} [options] Override http request option.
6061
5885
  * @throws {RequiredError}
6062
5886
  */
6063
- vehicleBrandsCreate(createVehicleBrandBody: CreateVehicleBrandBody, options?: any): AxiosPromise<VehicleBrandResponse> {
6064
- return localVarFp.vehicleBrandsCreate(createVehicleBrandBody, options).then((request) => request(axios, basePath));
5887
+ vehicleBrandsIndex(options?: any): AxiosPromise<Array<VehicleBrandIndexResponse>> {
5888
+ return localVarFp.vehicleBrandsIndex(options).then((request) => request(axios, basePath));
6065
5889
  },
6066
5890
  /**
6067
5891
  *
6068
- * @param {string} id
6069
5892
  * @param {*} [options] Override http request option.
6070
5893
  * @throws {RequiredError}
6071
5894
  */
6072
- vehicleBrandsDelete(id: string, options?: any): AxiosPromise<DeleteVehicleBrandResponse> {
6073
- return localVarFp.vehicleBrandsDelete(id, options).then((request) => request(axios, basePath));
5895
+ vipCampaignIndex(options?: any): AxiosPromise<CampaignSequenceResponse> {
5896
+ return localVarFp.vipCampaignIndex(options).then((request) => request(axios, basePath));
6074
5897
  },
6075
5898
  /**
6076
5899
  *
6077
- * @param {string} id
6078
- * @param {*} [options] Override http request option.
6079
- * @throws {RequiredError}
6080
- */
6081
- vehicleBrandsGet(id: string, options?: any): AxiosPromise<VehicleBrandResponse> {
6082
- return localVarFp.vehicleBrandsGet(id, options).then((request) => request(axios, basePath));
6083
- },
6084
- /**
6085
- *
6086
- * @param {string} [name]
6087
- * @param {*} [options] Override http request option.
6088
- * @throws {RequiredError}
6089
- */
6090
- vehicleBrandsIndex(name?: string, options?: any): AxiosPromise<Array<VehicleBrandIndexResponse>> {
6091
- return localVarFp.vehicleBrandsIndex(name, options).then((request) => request(axios, basePath));
6092
- },
6093
- /**
6094
- *
6095
- * @param {string} id
6096
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
5900
+ * @param {UpsertCampaign} upsertCampaign
6097
5901
  * @param {*} [options] Override http request option.
6098
5902
  * @throws {RequiredError}
6099
5903
  */
6100
- vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: any): AxiosPromise<VehicleBrandResponse> {
6101
- return localVarFp.vehicleBrandsUpdate(id, updateVehicleBrandBody, options).then((request) => request(axios, basePath));
5904
+ vipCampaignUpsert(upsertCampaign: UpsertCampaign, options?: any): AxiosPromise<Array<CampaignResponse>> {
5905
+ return localVarFp.vipCampaignUpsert(upsertCampaign, options).then((request) => request(axios, basePath));
6102
5906
  },
6103
5907
  };
6104
5908
  };
@@ -6612,58 +6416,33 @@ export class DefaultApi extends BaseAPI {
6612
6416
 
6613
6417
  /**
6614
6418
  *
6615
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
6616
- * @param {*} [options] Override http request option.
6617
- * @throws {RequiredError}
6618
- * @memberof DefaultApi
6619
- */
6620
- public vehicleBrandsCreate(createVehicleBrandBody: CreateVehicleBrandBody, options?: AxiosRequestConfig) {
6621
- return DefaultApiFp(this.configuration).vehicleBrandsCreate(createVehicleBrandBody, options).then((request) => request(this.axios, this.basePath));
6622
- }
6623
-
6624
- /**
6625
- *
6626
- * @param {string} id
6627
- * @param {*} [options] Override http request option.
6628
- * @throws {RequiredError}
6629
- * @memberof DefaultApi
6630
- */
6631
- public vehicleBrandsDelete(id: string, options?: AxiosRequestConfig) {
6632
- return DefaultApiFp(this.configuration).vehicleBrandsDelete(id, options).then((request) => request(this.axios, this.basePath));
6633
- }
6634
-
6635
- /**
6636
- *
6637
- * @param {string} id
6638
6419
  * @param {*} [options] Override http request option.
6639
6420
  * @throws {RequiredError}
6640
6421
  * @memberof DefaultApi
6641
6422
  */
6642
- public vehicleBrandsGet(id: string, options?: AxiosRequestConfig) {
6643
- return DefaultApiFp(this.configuration).vehicleBrandsGet(id, options).then((request) => request(this.axios, this.basePath));
6423
+ public vehicleBrandsIndex(options?: AxiosRequestConfig) {
6424
+ return DefaultApiFp(this.configuration).vehicleBrandsIndex(options).then((request) => request(this.axios, this.basePath));
6644
6425
  }
6645
6426
 
6646
6427
  /**
6647
6428
  *
6648
- * @param {string} [name]
6649
6429
  * @param {*} [options] Override http request option.
6650
6430
  * @throws {RequiredError}
6651
6431
  * @memberof DefaultApi
6652
6432
  */
6653
- public vehicleBrandsIndex(name?: string, options?: AxiosRequestConfig) {
6654
- return DefaultApiFp(this.configuration).vehicleBrandsIndex(name, options).then((request) => request(this.axios, this.basePath));
6433
+ public vipCampaignIndex(options?: AxiosRequestConfig) {
6434
+ return DefaultApiFp(this.configuration).vipCampaignIndex(options).then((request) => request(this.axios, this.basePath));
6655
6435
  }
6656
6436
 
6657
6437
  /**
6658
6438
  *
6659
- * @param {string} id
6660
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
6439
+ * @param {UpsertCampaign} upsertCampaign
6661
6440
  * @param {*} [options] Override http request option.
6662
6441
  * @throws {RequiredError}
6663
6442
  * @memberof DefaultApi
6664
6443
  */
6665
- public vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: AxiosRequestConfig) {
6666
- return DefaultApiFp(this.configuration).vehicleBrandsUpdate(id, updateVehicleBrandBody, options).then((request) => request(this.axios, this.basePath));
6444
+ public vipCampaignUpsert(upsertCampaign: UpsertCampaign, options?: AxiosRequestConfig) {
6445
+ return DefaultApiFp(this.configuration).vipCampaignUpsert(upsertCampaign, options).then((request) => request(this.axios, this.basePath));
6667
6446
  }
6668
6447
  }
6669
6448
 
package/api/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.27.1
7
+ * The version of the OpenAPI document: 1.27.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.27.1
7
+ * The version of the OpenAPI document: 1.27.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.27.1
7
+ * The version of the OpenAPI document: 1.27.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.27.1
7
+ * The version of the OpenAPI document: 1.27.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.27.1
5
+ * The version of the OpenAPI document: 1.27.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -643,6 +643,12 @@ export interface CreateReceiptBody {
643
643
  * @interface CreateRegisteredVehicleBody
644
644
  */
645
645
  export interface CreateRegisteredVehicleBody {
646
+ /**
647
+ *
648
+ * @type {boolean}
649
+ * @memberof CreateRegisteredVehicleBody
650
+ */
651
+ 'is_vip'?: boolean;
646
652
  /**
647
653
  *
648
654
  * @type {string}
@@ -668,38 +674,6 @@ export interface CreateRegisteredVehicleBody {
668
674
  */
669
675
  'plate_no': string;
670
676
  }
671
- /**
672
- *
673
- * @export
674
- * @interface CreateVehicleBrandBody
675
- */
676
- export interface CreateVehicleBrandBody {
677
- /**
678
- *
679
- * @type {string}
680
- * @memberof CreateVehicleBrandBody
681
- */
682
- 'name': string;
683
- }
684
- /**
685
- *
686
- * @export
687
- * @interface DeleteVehicleBrandResponse
688
- */
689
- export interface DeleteVehicleBrandResponse {
690
- /**
691
- *
692
- * @type {string}
693
- * @memberof DeleteVehicleBrandResponse
694
- */
695
- 'name': string;
696
- /**
697
- *
698
- * @type {string}
699
- * @memberof DeleteVehicleBrandResponse
700
- */
701
- 'id': string;
702
- }
703
677
  /**
704
678
  *
705
679
  * @export
@@ -3009,19 +2983,6 @@ export interface UpdateRegisteredVehicleBody {
3009
2983
  */
3010
2984
  'id': string;
3011
2985
  }
3012
- /**
3013
- *
3014
- * @export
3015
- * @interface UpdateVehicleBrandBody
3016
- */
3017
- export interface UpdateVehicleBrandBody {
3018
- /**
3019
- *
3020
- * @type {string}
3021
- * @memberof UpdateVehicleBrandBody
3022
- */
3023
- 'name'?: string;
3024
- }
3025
2986
  /**
3026
2987
  *
3027
2988
  * @export
@@ -3085,19 +3046,6 @@ export interface ValidateReceiptImageBody {
3085
3046
  */
3086
3047
  'source': string;
3087
3048
  }
3088
- /**
3089
- *
3090
- * @export
3091
- * @interface VehicleBrandIndexQuery
3092
- */
3093
- export interface VehicleBrandIndexQuery {
3094
- /**
3095
- *
3096
- * @type {string}
3097
- * @memberof VehicleBrandIndexQuery
3098
- */
3099
- 'name'?: string;
3100
- }
3101
3049
  /**
3102
3050
  *
3103
3051
  * @export
@@ -3154,25 +3102,6 @@ export interface VehicleBrandIndexResponseVehicleModelsInner {
3154
3102
  */
3155
3103
  'id'?: string;
3156
3104
  }
3157
- /**
3158
- *
3159
- * @export
3160
- * @interface VehicleBrandResponse
3161
- */
3162
- export interface VehicleBrandResponse {
3163
- /**
3164
- *
3165
- * @type {string}
3166
- * @memberof VehicleBrandResponse
3167
- */
3168
- 'name': string;
3169
- /**
3170
- *
3171
- * @type {string}
3172
- * @memberof VehicleBrandResponse
3173
- */
3174
- 'id': string;
3175
- }
3176
3105
  /**
3177
3106
  *
3178
3107
  * @export
@@ -3530,40 +3459,23 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3530
3459
  testTest: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
3531
3460
  /**
3532
3461
  *
3533
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
3534
- * @param {*} [options] Override http request option.
3535
- * @throws {RequiredError}
3536
- */
3537
- vehicleBrandsCreate: (createVehicleBrandBody: CreateVehicleBrandBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3538
- /**
3539
- *
3540
- * @param {string} id
3541
- * @param {*} [options] Override http request option.
3542
- * @throws {RequiredError}
3543
- */
3544
- vehicleBrandsDelete: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3545
- /**
3546
- *
3547
- * @param {string} id
3548
3462
  * @param {*} [options] Override http request option.
3549
3463
  * @throws {RequiredError}
3550
3464
  */
3551
- vehicleBrandsGet: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3465
+ vehicleBrandsIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
3552
3466
  /**
3553
3467
  *
3554
- * @param {string} [name]
3555
3468
  * @param {*} [options] Override http request option.
3556
3469
  * @throws {RequiredError}
3557
3470
  */
3558
- vehicleBrandsIndex: (name?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3471
+ vipCampaignIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
3559
3472
  /**
3560
3473
  *
3561
- * @param {string} id
3562
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
3474
+ * @param {UpsertCampaign} upsertCampaign
3563
3475
  * @param {*} [options] Override http request option.
3564
3476
  * @throws {RequiredError}
3565
3477
  */
3566
- vehicleBrandsUpdate: (id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3478
+ vipCampaignUpsert: (upsertCampaign: UpsertCampaign, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3567
3479
  };
3568
3480
  /**
3569
3481
  * DefaultApi - functional programming interface
@@ -3912,40 +3824,23 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3912
3824
  testTest(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TestTest200Response>>;
3913
3825
  /**
3914
3826
  *
3915
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
3916
3827
  * @param {*} [options] Override http request option.
3917
3828
  * @throws {RequiredError}
3918
3829
  */
3919
- vehicleBrandsCreate(createVehicleBrandBody: CreateVehicleBrandBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VehicleBrandResponse>>;
3830
+ vehicleBrandsIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VehicleBrandIndexResponse>>>;
3920
3831
  /**
3921
3832
  *
3922
- * @param {string} id
3923
- * @param {*} [options] Override http request option.
3924
- * @throws {RequiredError}
3925
- */
3926
- vehicleBrandsDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteVehicleBrandResponse>>;
3927
- /**
3928
- *
3929
- * @param {string} id
3930
- * @param {*} [options] Override http request option.
3931
- * @throws {RequiredError}
3932
- */
3933
- vehicleBrandsGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VehicleBrandResponse>>;
3934
- /**
3935
- *
3936
- * @param {string} [name]
3937
3833
  * @param {*} [options] Override http request option.
3938
3834
  * @throws {RequiredError}
3939
3835
  */
3940
- vehicleBrandsIndex(name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VehicleBrandIndexResponse>>>;
3836
+ vipCampaignIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CampaignSequenceResponse>>;
3941
3837
  /**
3942
3838
  *
3943
- * @param {string} id
3944
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
3839
+ * @param {UpsertCampaign} upsertCampaign
3945
3840
  * @param {*} [options] Override http request option.
3946
3841
  * @throws {RequiredError}
3947
3842
  */
3948
- vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VehicleBrandResponse>>;
3843
+ vipCampaignUpsert(upsertCampaign: UpsertCampaign, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CampaignResponse>>>;
3949
3844
  };
3950
3845
  /**
3951
3846
  * DefaultApi - factory interface
@@ -4294,40 +4189,23 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
4294
4189
  testTest(options?: any): AxiosPromise<TestTest200Response>;
4295
4190
  /**
4296
4191
  *
4297
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
4298
4192
  * @param {*} [options] Override http request option.
4299
4193
  * @throws {RequiredError}
4300
4194
  */
4301
- vehicleBrandsCreate(createVehicleBrandBody: CreateVehicleBrandBody, options?: any): AxiosPromise<VehicleBrandResponse>;
4195
+ vehicleBrandsIndex(options?: any): AxiosPromise<Array<VehicleBrandIndexResponse>>;
4302
4196
  /**
4303
4197
  *
4304
- * @param {string} id
4305
4198
  * @param {*} [options] Override http request option.
4306
4199
  * @throws {RequiredError}
4307
4200
  */
4308
- vehicleBrandsDelete(id: string, options?: any): AxiosPromise<DeleteVehicleBrandResponse>;
4201
+ vipCampaignIndex(options?: any): AxiosPromise<CampaignSequenceResponse>;
4309
4202
  /**
4310
4203
  *
4311
- * @param {string} id
4312
- * @param {*} [options] Override http request option.
4313
- * @throws {RequiredError}
4314
- */
4315
- vehicleBrandsGet(id: string, options?: any): AxiosPromise<VehicleBrandResponse>;
4316
- /**
4317
- *
4318
- * @param {string} [name]
4319
- * @param {*} [options] Override http request option.
4320
- * @throws {RequiredError}
4321
- */
4322
- vehicleBrandsIndex(name?: string, options?: any): AxiosPromise<Array<VehicleBrandIndexResponse>>;
4323
- /**
4324
- *
4325
- * @param {string} id
4326
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
4204
+ * @param {UpsertCampaign} upsertCampaign
4327
4205
  * @param {*} [options] Override http request option.
4328
4206
  * @throws {RequiredError}
4329
4207
  */
4330
- vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: any): AxiosPromise<VehicleBrandResponse>;
4208
+ vipCampaignUpsert(upsertCampaign: UpsertCampaign, options?: any): AxiosPromise<Array<CampaignResponse>>;
4331
4209
  };
4332
4210
  /**
4333
4211
  * DefaultApi - object-oriented interface
@@ -4718,43 +4596,24 @@ export declare class DefaultApi extends BaseAPI {
4718
4596
  testTest(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestTest200Response, any>>;
4719
4597
  /**
4720
4598
  *
4721
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
4722
4599
  * @param {*} [options] Override http request option.
4723
4600
  * @throws {RequiredError}
4724
4601
  * @memberof DefaultApi
4725
4602
  */
4726
- vehicleBrandsCreate(createVehicleBrandBody: CreateVehicleBrandBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VehicleBrandResponse, any>>;
4603
+ vehicleBrandsIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VehicleBrandIndexResponse[], any>>;
4727
4604
  /**
4728
4605
  *
4729
- * @param {string} id
4730
4606
  * @param {*} [options] Override http request option.
4731
4607
  * @throws {RequiredError}
4732
4608
  * @memberof DefaultApi
4733
4609
  */
4734
- vehicleBrandsDelete(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteVehicleBrandResponse, any>>;
4610
+ vipCampaignIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CampaignSequenceResponse, any>>;
4735
4611
  /**
4736
4612
  *
4737
- * @param {string} id
4738
- * @param {*} [options] Override http request option.
4739
- * @throws {RequiredError}
4740
- * @memberof DefaultApi
4741
- */
4742
- vehicleBrandsGet(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VehicleBrandResponse, any>>;
4743
- /**
4744
- *
4745
- * @param {string} [name]
4746
- * @param {*} [options] Override http request option.
4747
- * @throws {RequiredError}
4748
- * @memberof DefaultApi
4749
- */
4750
- vehicleBrandsIndex(name?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VehicleBrandIndexResponse[], any>>;
4751
- /**
4752
- *
4753
- * @param {string} id
4754
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
4613
+ * @param {UpsertCampaign} upsertCampaign
4755
4614
  * @param {*} [options] Override http request option.
4756
4615
  * @throws {RequiredError}
4757
4616
  * @memberof DefaultApi
4758
4617
  */
4759
- vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VehicleBrandResponse, any>>;
4618
+ vipCampaignUpsert(upsertCampaign: UpsertCampaign, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CampaignResponse[], any>>;
4760
4619
  }
package/dist/api/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 1.27.1
8
+ * The version of the OpenAPI document: 1.27.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1503,13 +1503,10 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1503
1503
  }),
1504
1504
  /**
1505
1505
  *
1506
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
1507
1506
  * @param {*} [options] Override http request option.
1508
1507
  * @throws {RequiredError}
1509
1508
  */
1510
- vehicleBrandsCreate: (createVehicleBrandBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
1511
- // verify required parameter 'createVehicleBrandBody' is not null or undefined
1512
- (0, common_1.assertParamExists)('vehicleBrandsCreate', 'createVehicleBrandBody', createVehicleBrandBody);
1509
+ vehicleBrandsIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1513
1510
  const localVarPath = `/vehicle-brands`;
1514
1511
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1515
1512
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1517,64 +1514,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1517
1514
  if (configuration) {
1518
1515
  baseOptions = configuration.baseOptions;
1519
1516
  }
1520
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1521
- const localVarHeaderParameter = {};
1522
- const localVarQueryParameter = {};
1523
- localVarHeaderParameter['Content-Type'] = 'application/json';
1524
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1525
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1526
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1527
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVehicleBrandBody, localVarRequestOptions, configuration);
1528
- return {
1529
- url: (0, common_1.toPathString)(localVarUrlObj),
1530
- options: localVarRequestOptions,
1531
- };
1532
- }),
1533
- /**
1534
- *
1535
- * @param {string} id
1536
- * @param {*} [options] Override http request option.
1537
- * @throws {RequiredError}
1538
- */
1539
- vehicleBrandsDelete: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1540
- // verify required parameter 'id' is not null or undefined
1541
- (0, common_1.assertParamExists)('vehicleBrandsDelete', 'id', id);
1542
- const localVarPath = `/vehicle-brands/{id}`
1543
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1544
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1545
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1546
- let baseOptions;
1547
- if (configuration) {
1548
- baseOptions = configuration.baseOptions;
1549
- }
1550
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1551
- const localVarHeaderParameter = {};
1552
- const localVarQueryParameter = {};
1553
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1554
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1555
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1556
- return {
1557
- url: (0, common_1.toPathString)(localVarUrlObj),
1558
- options: localVarRequestOptions,
1559
- };
1560
- }),
1561
- /**
1562
- *
1563
- * @param {string} id
1564
- * @param {*} [options] Override http request option.
1565
- * @throws {RequiredError}
1566
- */
1567
- vehicleBrandsGet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1568
- // verify required parameter 'id' is not null or undefined
1569
- (0, common_1.assertParamExists)('vehicleBrandsGet', 'id', id);
1570
- const localVarPath = `/vehicle-brands/{id}`
1571
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1572
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1573
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1574
- let baseOptions;
1575
- if (configuration) {
1576
- baseOptions = configuration.baseOptions;
1577
- }
1578
1517
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1579
1518
  const localVarHeaderParameter = {};
1580
1519
  const localVarQueryParameter = {};
@@ -1588,12 +1527,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1588
1527
  }),
1589
1528
  /**
1590
1529
  *
1591
- * @param {string} [name]
1592
1530
  * @param {*} [options] Override http request option.
1593
1531
  * @throws {RequiredError}
1594
1532
  */
1595
- vehicleBrandsIndex: (name, options = {}) => __awaiter(this, void 0, void 0, function* () {
1596
- const localVarPath = `/vehicle-brands`;
1533
+ vipCampaignIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1534
+ const localVarPath = `/vip-campaign`;
1597
1535
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1598
1536
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1599
1537
  let baseOptions;
@@ -1603,9 +1541,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1603
1541
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1604
1542
  const localVarHeaderParameter = {};
1605
1543
  const localVarQueryParameter = {};
1606
- if (name !== undefined) {
1607
- localVarQueryParameter['name'] = name;
1608
- }
1609
1544
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1610
1545
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1611
1546
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1616,32 +1551,28 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1616
1551
  }),
1617
1552
  /**
1618
1553
  *
1619
- * @param {string} id
1620
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
1554
+ * @param {UpsertCampaign} upsertCampaign
1621
1555
  * @param {*} [options] Override http request option.
1622
1556
  * @throws {RequiredError}
1623
1557
  */
1624
- vehicleBrandsUpdate: (id, updateVehicleBrandBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
1625
- // verify required parameter 'id' is not null or undefined
1626
- (0, common_1.assertParamExists)('vehicleBrandsUpdate', 'id', id);
1627
- // verify required parameter 'updateVehicleBrandBody' is not null or undefined
1628
- (0, common_1.assertParamExists)('vehicleBrandsUpdate', 'updateVehicleBrandBody', updateVehicleBrandBody);
1629
- const localVarPath = `/vehicle-brands/{id}`
1630
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1558
+ vipCampaignUpsert: (upsertCampaign, options = {}) => __awaiter(this, void 0, void 0, function* () {
1559
+ // verify required parameter 'upsertCampaign' is not null or undefined
1560
+ (0, common_1.assertParamExists)('vipCampaignUpsert', 'upsertCampaign', upsertCampaign);
1561
+ const localVarPath = `/vip-campaign`;
1631
1562
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1632
1563
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1633
1564
  let baseOptions;
1634
1565
  if (configuration) {
1635
1566
  baseOptions = configuration.baseOptions;
1636
1567
  }
1637
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1568
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1638
1569
  const localVarHeaderParameter = {};
1639
1570
  const localVarQueryParameter = {};
1640
1571
  localVarHeaderParameter['Content-Type'] = 'application/json';
1641
1572
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1642
1573
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1643
1574
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1644
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVehicleBrandBody, localVarRequestOptions, configuration);
1575
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(upsertCampaign, localVarRequestOptions, configuration);
1645
1576
  return {
1646
1577
  url: (0, common_1.toPathString)(localVarUrlObj),
1647
1578
  options: localVarRequestOptions,
@@ -2199,62 +2130,35 @@ const DefaultApiFp = function (configuration) {
2199
2130
  },
2200
2131
  /**
2201
2132
  *
2202
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
2203
- * @param {*} [options] Override http request option.
2204
- * @throws {RequiredError}
2205
- */
2206
- vehicleBrandsCreate(createVehicleBrandBody, options) {
2207
- return __awaiter(this, void 0, void 0, function* () {
2208
- const localVarAxiosArgs = yield localVarAxiosParamCreator.vehicleBrandsCreate(createVehicleBrandBody, options);
2209
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2210
- });
2211
- },
2212
- /**
2213
- *
2214
- * @param {string} id
2215
2133
  * @param {*} [options] Override http request option.
2216
2134
  * @throws {RequiredError}
2217
2135
  */
2218
- vehicleBrandsDelete(id, options) {
2136
+ vehicleBrandsIndex(options) {
2219
2137
  return __awaiter(this, void 0, void 0, function* () {
2220
- const localVarAxiosArgs = yield localVarAxiosParamCreator.vehicleBrandsDelete(id, options);
2138
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.vehicleBrandsIndex(options);
2221
2139
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2222
2140
  });
2223
2141
  },
2224
2142
  /**
2225
2143
  *
2226
- * @param {string} id
2227
2144
  * @param {*} [options] Override http request option.
2228
2145
  * @throws {RequiredError}
2229
2146
  */
2230
- vehicleBrandsGet(id, options) {
2147
+ vipCampaignIndex(options) {
2231
2148
  return __awaiter(this, void 0, void 0, function* () {
2232
- const localVarAxiosArgs = yield localVarAxiosParamCreator.vehicleBrandsGet(id, options);
2149
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.vipCampaignIndex(options);
2233
2150
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2234
2151
  });
2235
2152
  },
2236
2153
  /**
2237
2154
  *
2238
- * @param {string} [name]
2239
- * @param {*} [options] Override http request option.
2240
- * @throws {RequiredError}
2241
- */
2242
- vehicleBrandsIndex(name, options) {
2243
- return __awaiter(this, void 0, void 0, function* () {
2244
- const localVarAxiosArgs = yield localVarAxiosParamCreator.vehicleBrandsIndex(name, options);
2245
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2246
- });
2247
- },
2248
- /**
2249
- *
2250
- * @param {string} id
2251
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
2155
+ * @param {UpsertCampaign} upsertCampaign
2252
2156
  * @param {*} [options] Override http request option.
2253
2157
  * @throws {RequiredError}
2254
2158
  */
2255
- vehicleBrandsUpdate(id, updateVehicleBrandBody, options) {
2159
+ vipCampaignUpsert(upsertCampaign, options) {
2256
2160
  return __awaiter(this, void 0, void 0, function* () {
2257
- const localVarAxiosArgs = yield localVarAxiosParamCreator.vehicleBrandsUpdate(id, updateVehicleBrandBody, options);
2161
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.vipCampaignUpsert(upsertCampaign, options);
2258
2162
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2259
2163
  });
2260
2164
  },
@@ -2690,49 +2594,28 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2690
2594
  },
2691
2595
  /**
2692
2596
  *
2693
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
2694
2597
  * @param {*} [options] Override http request option.
2695
2598
  * @throws {RequiredError}
2696
2599
  */
2697
- vehicleBrandsCreate(createVehicleBrandBody, options) {
2698
- return localVarFp.vehicleBrandsCreate(createVehicleBrandBody, options).then((request) => request(axios, basePath));
2600
+ vehicleBrandsIndex(options) {
2601
+ return localVarFp.vehicleBrandsIndex(options).then((request) => request(axios, basePath));
2699
2602
  },
2700
2603
  /**
2701
2604
  *
2702
- * @param {string} id
2703
2605
  * @param {*} [options] Override http request option.
2704
2606
  * @throws {RequiredError}
2705
2607
  */
2706
- vehicleBrandsDelete(id, options) {
2707
- return localVarFp.vehicleBrandsDelete(id, options).then((request) => request(axios, basePath));
2608
+ vipCampaignIndex(options) {
2609
+ return localVarFp.vipCampaignIndex(options).then((request) => request(axios, basePath));
2708
2610
  },
2709
2611
  /**
2710
2612
  *
2711
- * @param {string} id
2712
- * @param {*} [options] Override http request option.
2713
- * @throws {RequiredError}
2714
- */
2715
- vehicleBrandsGet(id, options) {
2716
- return localVarFp.vehicleBrandsGet(id, options).then((request) => request(axios, basePath));
2717
- },
2718
- /**
2719
- *
2720
- * @param {string} [name]
2721
- * @param {*} [options] Override http request option.
2722
- * @throws {RequiredError}
2723
- */
2724
- vehicleBrandsIndex(name, options) {
2725
- return localVarFp.vehicleBrandsIndex(name, options).then((request) => request(axios, basePath));
2726
- },
2727
- /**
2728
- *
2729
- * @param {string} id
2730
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
2613
+ * @param {UpsertCampaign} upsertCampaign
2731
2614
  * @param {*} [options] Override http request option.
2732
2615
  * @throws {RequiredError}
2733
2616
  */
2734
- vehicleBrandsUpdate(id, updateVehicleBrandBody, options) {
2735
- return localVarFp.vehicleBrandsUpdate(id, updateVehicleBrandBody, options).then((request) => request(axios, basePath));
2617
+ vipCampaignUpsert(upsertCampaign, options) {
2618
+ return localVarFp.vipCampaignUpsert(upsertCampaign, options).then((request) => request(axios, basePath));
2736
2619
  },
2737
2620
  };
2738
2621
  };
@@ -3206,54 +3089,31 @@ class DefaultApi extends base_1.BaseAPI {
3206
3089
  }
3207
3090
  /**
3208
3091
  *
3209
- * @param {CreateVehicleBrandBody} createVehicleBrandBody
3210
- * @param {*} [options] Override http request option.
3211
- * @throws {RequiredError}
3212
- * @memberof DefaultApi
3213
- */
3214
- vehicleBrandsCreate(createVehicleBrandBody, options) {
3215
- return (0, exports.DefaultApiFp)(this.configuration).vehicleBrandsCreate(createVehicleBrandBody, options).then((request) => request(this.axios, this.basePath));
3216
- }
3217
- /**
3218
- *
3219
- * @param {string} id
3220
3092
  * @param {*} [options] Override http request option.
3221
3093
  * @throws {RequiredError}
3222
3094
  * @memberof DefaultApi
3223
3095
  */
3224
- vehicleBrandsDelete(id, options) {
3225
- return (0, exports.DefaultApiFp)(this.configuration).vehicleBrandsDelete(id, options).then((request) => request(this.axios, this.basePath));
3096
+ vehicleBrandsIndex(options) {
3097
+ return (0, exports.DefaultApiFp)(this.configuration).vehicleBrandsIndex(options).then((request) => request(this.axios, this.basePath));
3226
3098
  }
3227
3099
  /**
3228
3100
  *
3229
- * @param {string} id
3230
3101
  * @param {*} [options] Override http request option.
3231
3102
  * @throws {RequiredError}
3232
3103
  * @memberof DefaultApi
3233
3104
  */
3234
- vehicleBrandsGet(id, options) {
3235
- return (0, exports.DefaultApiFp)(this.configuration).vehicleBrandsGet(id, options).then((request) => request(this.axios, this.basePath));
3105
+ vipCampaignIndex(options) {
3106
+ return (0, exports.DefaultApiFp)(this.configuration).vipCampaignIndex(options).then((request) => request(this.axios, this.basePath));
3236
3107
  }
3237
3108
  /**
3238
3109
  *
3239
- * @param {string} [name]
3240
- * @param {*} [options] Override http request option.
3241
- * @throws {RequiredError}
3242
- * @memberof DefaultApi
3243
- */
3244
- vehicleBrandsIndex(name, options) {
3245
- return (0, exports.DefaultApiFp)(this.configuration).vehicleBrandsIndex(name, options).then((request) => request(this.axios, this.basePath));
3246
- }
3247
- /**
3248
- *
3249
- * @param {string} id
3250
- * @param {UpdateVehicleBrandBody} updateVehicleBrandBody
3110
+ * @param {UpsertCampaign} upsertCampaign
3251
3111
  * @param {*} [options] Override http request option.
3252
3112
  * @throws {RequiredError}
3253
3113
  * @memberof DefaultApi
3254
3114
  */
3255
- vehicleBrandsUpdate(id, updateVehicleBrandBody, options) {
3256
- return (0, exports.DefaultApiFp)(this.configuration).vehicleBrandsUpdate(id, updateVehicleBrandBody, options).then((request) => request(this.axios, this.basePath));
3115
+ vipCampaignUpsert(upsertCampaign, options) {
3116
+ return (0, exports.DefaultApiFp)(this.configuration).vipCampaignUpsert(upsertCampaign, options).then((request) => request(this.axios, this.basePath));
3257
3117
  }
3258
3118
  }
3259
3119
  exports.DefaultApi = DefaultApi;
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.27.1
5
+ * The version of the OpenAPI document: 1.27.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 1.27.1
8
+ * The version of the OpenAPI document: 1.27.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.27.1
5
+ * The version of the OpenAPI document: 1.27.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 1.27.1
8
+ * The version of the OpenAPI document: 1.27.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.27.1
5
+ * The version of the OpenAPI document: 1.27.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 1.27.1
8
+ * The version of the OpenAPI document: 1.27.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.27.1
5
+ * The version of the OpenAPI document: 1.27.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 1.27.1
8
+ * The version of the OpenAPI document: 1.27.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-parking-sdk",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "description": "API interfaces for OB PARKING",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"