@ember-home/unbound-ts-client 0.0.4 → 0.0.6

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/index.mjs CHANGED
@@ -75,10 +75,31 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
75
75
  };
76
76
 
77
77
  // src/api.ts
78
+ var AddressItemSourceEnum = {
79
+ ThirdParty: "THIRD_PARTY",
80
+ Manual: "MANUAL"
81
+ };
82
+ var EmailSourceEnum = {
83
+ ThirdParty: "THIRD_PARTY",
84
+ Manual: "MANUAL"
85
+ };
86
+ var GuestDataContactTypeEnum = {
87
+ Guest: "GUEST"
88
+ };
89
+ var OtherDataContactTypeEnum = {
90
+ Other: "OTHER"
91
+ };
92
+ var OwnerDataContactTypeEnum = {
93
+ Owner: "OWNER"
94
+ };
95
+ var PhoneSourceEnum = {
96
+ ThirdParty: "THIRD_PARTY",
97
+ Manual: "MANUAL"
98
+ };
78
99
  var ContactsApiAxiosParamCreator = function(configuration) {
79
100
  return {
80
101
  /**
81
- * Create a new contact
102
+ *
82
103
  * @summary Contacts Create
83
104
  * @param {string} customerId
84
105
  * @param {ContactCreate} contactCreate
@@ -88,7 +109,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
88
109
  contactsCreate: async (customerId, contactCreate, options = {}) => {
89
110
  assertParamExists("contactsCreate", "customerId", customerId);
90
111
  assertParamExists("contactsCreate", "contactCreate", contactCreate);
91
- const localVarPath = `/customers/{customerId}/contacts`.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
112
+ const localVarPath = `/contacts`;
92
113
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
93
114
  let baseOptions;
94
115
  if (configuration) {
@@ -97,6 +118,9 @@ var ContactsApiAxiosParamCreator = function(configuration) {
97
118
  const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
98
119
  const localVarHeaderParameter = {};
99
120
  const localVarQueryParameter = {};
121
+ if (customerId !== void 0) {
122
+ localVarQueryParameter["customerId"] = customerId;
123
+ }
100
124
  localVarHeaderParameter["Content-Type"] = "application/json";
101
125
  setSearchParams(localVarUrlObj, localVarQueryParameter);
102
126
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -108,7 +132,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
108
132
  };
109
133
  },
110
134
  /**
111
- * Delete a contact
135
+ *
112
136
  * @summary Contacts Delete
113
137
  * @param {string} contactId
114
138
  * @param {*} [options] Override http request option.
@@ -134,7 +158,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
134
158
  };
135
159
  },
136
160
  /**
137
- * Get a contact by ID
161
+ *
138
162
  * @summary Contacts Get
139
163
  * @param {string} contactId
140
164
  * @param {*} [options] Override http request option.
@@ -160,7 +184,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
160
184
  };
161
185
  },
162
186
  /**
163
- * List all contacts
187
+ *
164
188
  * @summary Contacts List
165
189
  * @param {string} [statusFilter]
166
190
  * @param {*} [options] Override http request option.
@@ -188,7 +212,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
188
212
  };
189
213
  },
190
214
  /**
191
- * Update a contact
215
+ *
192
216
  * @summary Contacts Update
193
217
  * @param {string} contactId
194
218
  * @param {ContactUpdate} contactUpdate
@@ -223,7 +247,7 @@ var ContactsApiFp = function(configuration) {
223
247
  const localVarAxiosParamCreator = ContactsApiAxiosParamCreator(configuration);
224
248
  return {
225
249
  /**
226
- * Create a new contact
250
+ *
227
251
  * @summary Contacts Create
228
252
  * @param {string} customerId
229
253
  * @param {ContactCreate} contactCreate
@@ -237,7 +261,7 @@ var ContactsApiFp = function(configuration) {
237
261
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
238
262
  },
239
263
  /**
240
- * Delete a contact
264
+ *
241
265
  * @summary Contacts Delete
242
266
  * @param {string} contactId
243
267
  * @param {*} [options] Override http request option.
@@ -250,7 +274,7 @@ var ContactsApiFp = function(configuration) {
250
274
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
251
275
  },
252
276
  /**
253
- * Get a contact by ID
277
+ *
254
278
  * @summary Contacts Get
255
279
  * @param {string} contactId
256
280
  * @param {*} [options] Override http request option.
@@ -263,7 +287,7 @@ var ContactsApiFp = function(configuration) {
263
287
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
264
288
  },
265
289
  /**
266
- * List all contacts
290
+ *
267
291
  * @summary Contacts List
268
292
  * @param {string} [statusFilter]
269
293
  * @param {*} [options] Override http request option.
@@ -276,7 +300,7 @@ var ContactsApiFp = function(configuration) {
276
300
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
277
301
  },
278
302
  /**
279
- * Update a contact
303
+ *
280
304
  * @summary Contacts Update
281
305
  * @param {string} contactId
282
306
  * @param {ContactUpdate} contactUpdate
@@ -295,7 +319,7 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
295
319
  const localVarFp = ContactsApiFp(configuration);
296
320
  return {
297
321
  /**
298
- * Create a new contact
322
+ *
299
323
  * @summary Contacts Create
300
324
  * @param {string} customerId
301
325
  * @param {ContactCreate} contactCreate
@@ -306,7 +330,7 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
306
330
  return localVarFp.contactsCreate(customerId, contactCreate, options).then((request) => request(axios, basePath));
307
331
  },
308
332
  /**
309
- * Delete a contact
333
+ *
310
334
  * @summary Contacts Delete
311
335
  * @param {string} contactId
312
336
  * @param {*} [options] Override http request option.
@@ -316,7 +340,7 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
316
340
  return localVarFp.contactsDelete(contactId, options).then((request) => request(axios, basePath));
317
341
  },
318
342
  /**
319
- * Get a contact by ID
343
+ *
320
344
  * @summary Contacts Get
321
345
  * @param {string} contactId
322
346
  * @param {*} [options] Override http request option.
@@ -326,7 +350,7 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
326
350
  return localVarFp.contactsGet(contactId, options).then((request) => request(axios, basePath));
327
351
  },
328
352
  /**
329
- * List all contacts
353
+ *
330
354
  * @summary Contacts List
331
355
  * @param {string} [statusFilter]
332
356
  * @param {*} [options] Override http request option.
@@ -336,7 +360,7 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
336
360
  return localVarFp.contactsList(statusFilter, options).then((request) => request(axios, basePath));
337
361
  },
338
362
  /**
339
- * Update a contact
363
+ *
340
364
  * @summary Contacts Update
341
365
  * @param {string} contactId
342
366
  * @param {ContactUpdate} contactUpdate
@@ -350,7 +374,7 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
350
374
  };
351
375
  var ContactsApi = class extends BaseAPI {
352
376
  /**
353
- * Create a new contact
377
+ *
354
378
  * @summary Contacts Create
355
379
  * @param {string} customerId
356
380
  * @param {ContactCreate} contactCreate
@@ -362,7 +386,7 @@ var ContactsApi = class extends BaseAPI {
362
386
  return ContactsApiFp(this.configuration).contactsCreate(customerId, contactCreate, options).then((request) => request(this.axios, this.basePath));
363
387
  }
364
388
  /**
365
- * Delete a contact
389
+ *
366
390
  * @summary Contacts Delete
367
391
  * @param {string} contactId
368
392
  * @param {*} [options] Override http request option.
@@ -373,7 +397,7 @@ var ContactsApi = class extends BaseAPI {
373
397
  return ContactsApiFp(this.configuration).contactsDelete(contactId, options).then((request) => request(this.axios, this.basePath));
374
398
  }
375
399
  /**
376
- * Get a contact by ID
400
+ *
377
401
  * @summary Contacts Get
378
402
  * @param {string} contactId
379
403
  * @param {*} [options] Override http request option.
@@ -384,7 +408,7 @@ var ContactsApi = class extends BaseAPI {
384
408
  return ContactsApiFp(this.configuration).contactsGet(contactId, options).then((request) => request(this.axios, this.basePath));
385
409
  }
386
410
  /**
387
- * List all contacts
411
+ *
388
412
  * @summary Contacts List
389
413
  * @param {string} [statusFilter]
390
414
  * @param {*} [options] Override http request option.
@@ -395,7 +419,7 @@ var ContactsApi = class extends BaseAPI {
395
419
  return ContactsApiFp(this.configuration).contactsList(statusFilter, options).then((request) => request(this.axios, this.basePath));
396
420
  }
397
421
  /**
398
- * Update a contact
422
+ *
399
423
  * @summary Contacts Update
400
424
  * @param {string} contactId
401
425
  * @param {ContactUpdate} contactUpdate
@@ -567,7 +591,7 @@ var ReservationsApi = class extends BaseAPI {
567
591
  var UnboundApiAxiosParamCreator = function(configuration) {
568
592
  return {
569
593
  /**
570
- * Create a new contact
594
+ *
571
595
  * @summary Contacts Create
572
596
  * @param {string} customerId
573
597
  * @param {ContactCreate} contactCreate
@@ -577,7 +601,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
577
601
  contactsCreate: async (customerId, contactCreate, options = {}) => {
578
602
  assertParamExists("contactsCreate", "customerId", customerId);
579
603
  assertParamExists("contactsCreate", "contactCreate", contactCreate);
580
- const localVarPath = `/customers/{customerId}/contacts`.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
604
+ const localVarPath = `/contacts`;
581
605
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
582
606
  let baseOptions;
583
607
  if (configuration) {
@@ -586,6 +610,9 @@ var UnboundApiAxiosParamCreator = function(configuration) {
586
610
  const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
587
611
  const localVarHeaderParameter = {};
588
612
  const localVarQueryParameter = {};
613
+ if (customerId !== void 0) {
614
+ localVarQueryParameter["customerId"] = customerId;
615
+ }
589
616
  localVarHeaderParameter["Content-Type"] = "application/json";
590
617
  setSearchParams(localVarUrlObj, localVarQueryParameter);
591
618
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -597,7 +624,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
597
624
  };
598
625
  },
599
626
  /**
600
- * Delete a contact
627
+ *
601
628
  * @summary Contacts Delete
602
629
  * @param {string} contactId
603
630
  * @param {*} [options] Override http request option.
@@ -623,7 +650,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
623
650
  };
624
651
  },
625
652
  /**
626
- * Get a contact by ID
653
+ *
627
654
  * @summary Contacts Get
628
655
  * @param {string} contactId
629
656
  * @param {*} [options] Override http request option.
@@ -649,7 +676,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
649
676
  };
650
677
  },
651
678
  /**
652
- * List all contacts
679
+ *
653
680
  * @summary Contacts List
654
681
  * @param {string} [statusFilter]
655
682
  * @param {*} [options] Override http request option.
@@ -677,7 +704,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
677
704
  };
678
705
  },
679
706
  /**
680
- * Update a contact
707
+ *
681
708
  * @summary Contacts Update
682
709
  * @param {string} contactId
683
710
  * @param {ContactUpdate} contactUpdate
@@ -769,7 +796,7 @@ var UnboundApiFp = function(configuration) {
769
796
  const localVarAxiosParamCreator = UnboundApiAxiosParamCreator(configuration);
770
797
  return {
771
798
  /**
772
- * Create a new contact
799
+ *
773
800
  * @summary Contacts Create
774
801
  * @param {string} customerId
775
802
  * @param {ContactCreate} contactCreate
@@ -783,7 +810,7 @@ var UnboundApiFp = function(configuration) {
783
810
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
784
811
  },
785
812
  /**
786
- * Delete a contact
813
+ *
787
814
  * @summary Contacts Delete
788
815
  * @param {string} contactId
789
816
  * @param {*} [options] Override http request option.
@@ -796,7 +823,7 @@ var UnboundApiFp = function(configuration) {
796
823
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
797
824
  },
798
825
  /**
799
- * Get a contact by ID
826
+ *
800
827
  * @summary Contacts Get
801
828
  * @param {string} contactId
802
829
  * @param {*} [options] Override http request option.
@@ -809,7 +836,7 @@ var UnboundApiFp = function(configuration) {
809
836
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
810
837
  },
811
838
  /**
812
- * List all contacts
839
+ *
813
840
  * @summary Contacts List
814
841
  * @param {string} [statusFilter]
815
842
  * @param {*} [options] Override http request option.
@@ -822,7 +849,7 @@ var UnboundApiFp = function(configuration) {
822
849
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
823
850
  },
824
851
  /**
825
- * Update a contact
852
+ *
826
853
  * @summary Contacts Update
827
854
  * @param {string} contactId
828
855
  * @param {ContactUpdate} contactUpdate
@@ -867,7 +894,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
867
894
  const localVarFp = UnboundApiFp(configuration);
868
895
  return {
869
896
  /**
870
- * Create a new contact
897
+ *
871
898
  * @summary Contacts Create
872
899
  * @param {string} customerId
873
900
  * @param {ContactCreate} contactCreate
@@ -878,7 +905,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
878
905
  return localVarFp.contactsCreate(customerId, contactCreate, options).then((request) => request(axios, basePath));
879
906
  },
880
907
  /**
881
- * Delete a contact
908
+ *
882
909
  * @summary Contacts Delete
883
910
  * @param {string} contactId
884
911
  * @param {*} [options] Override http request option.
@@ -888,7 +915,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
888
915
  return localVarFp.contactsDelete(contactId, options).then((request) => request(axios, basePath));
889
916
  },
890
917
  /**
891
- * Get a contact by ID
918
+ *
892
919
  * @summary Contacts Get
893
920
  * @param {string} contactId
894
921
  * @param {*} [options] Override http request option.
@@ -898,7 +925,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
898
925
  return localVarFp.contactsGet(contactId, options).then((request) => request(axios, basePath));
899
926
  },
900
927
  /**
901
- * List all contacts
928
+ *
902
929
  * @summary Contacts List
903
930
  * @param {string} [statusFilter]
904
931
  * @param {*} [options] Override http request option.
@@ -908,7 +935,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
908
935
  return localVarFp.contactsList(statusFilter, options).then((request) => request(axios, basePath));
909
936
  },
910
937
  /**
911
- * Update a contact
938
+ *
912
939
  * @summary Contacts Update
913
940
  * @param {string} contactId
914
941
  * @param {ContactUpdate} contactUpdate
@@ -942,7 +969,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
942
969
  };
943
970
  var UnboundApi = class extends BaseAPI {
944
971
  /**
945
- * Create a new contact
972
+ *
946
973
  * @summary Contacts Create
947
974
  * @param {string} customerId
948
975
  * @param {ContactCreate} contactCreate
@@ -954,7 +981,7 @@ var UnboundApi = class extends BaseAPI {
954
981
  return UnboundApiFp(this.configuration).contactsCreate(customerId, contactCreate, options).then((request) => request(this.axios, this.basePath));
955
982
  }
956
983
  /**
957
- * Delete a contact
984
+ *
958
985
  * @summary Contacts Delete
959
986
  * @param {string} contactId
960
987
  * @param {*} [options] Override http request option.
@@ -965,7 +992,7 @@ var UnboundApi = class extends BaseAPI {
965
992
  return UnboundApiFp(this.configuration).contactsDelete(contactId, options).then((request) => request(this.axios, this.basePath));
966
993
  }
967
994
  /**
968
- * Get a contact by ID
995
+ *
969
996
  * @summary Contacts Get
970
997
  * @param {string} contactId
971
998
  * @param {*} [options] Override http request option.
@@ -976,7 +1003,7 @@ var UnboundApi = class extends BaseAPI {
976
1003
  return UnboundApiFp(this.configuration).contactsGet(contactId, options).then((request) => request(this.axios, this.basePath));
977
1004
  }
978
1005
  /**
979
- * List all contacts
1006
+ *
980
1007
  * @summary Contacts List
981
1008
  * @param {string} [statusFilter]
982
1009
  * @param {*} [options] Override http request option.
@@ -987,7 +1014,7 @@ var UnboundApi = class extends BaseAPI {
987
1014
  return UnboundApiFp(this.configuration).contactsList(statusFilter, options).then((request) => request(this.axios, this.basePath));
988
1015
  }
989
1016
  /**
990
- * Update a contact
1017
+ *
991
1018
  * @summary Contacts Update
992
1019
  * @param {string} contactId
993
1020
  * @param {ContactUpdate} contactUpdate
@@ -1111,15 +1138,21 @@ var Configuration = class {
1111
1138
  }
1112
1139
  };
1113
1140
  export {
1141
+ AddressItemSourceEnum,
1114
1142
  Configuration,
1115
1143
  ContactsApi,
1116
1144
  ContactsApiAxiosParamCreator,
1117
1145
  ContactsApiFactory,
1118
1146
  ContactsApiFp,
1147
+ EmailSourceEnum,
1148
+ GuestDataContactTypeEnum,
1119
1149
  HostawayApi,
1120
1150
  HostawayApiAxiosParamCreator,
1121
1151
  HostawayApiFactory,
1122
1152
  HostawayApiFp,
1153
+ OtherDataContactTypeEnum,
1154
+ OwnerDataContactTypeEnum,
1155
+ PhoneSourceEnum,
1123
1156
  ReservationsApi,
1124
1157
  ReservationsApiAxiosParamCreator,
1125
1158
  ReservationsApiFactory,