@infisale-client/api 1.2.106 → 1.2.109
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/api.d.ts +126 -142
- package/dist/api/api.js +128 -0
- package/dist/api/api.mjs +128 -0
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -1109,12 +1109,6 @@ export interface IBrandPatchRequest {
|
|
|
1109
1109
|
* @memberof IBrandPatchRequest
|
|
1110
1110
|
*/
|
|
1111
1111
|
'contents'?: PartialRecordLanguageEnumIContentsValue;
|
|
1112
|
-
/**
|
|
1113
|
-
*
|
|
1114
|
-
* @type {Array<string>}
|
|
1115
|
-
* @memberof IBrandPatchRequest
|
|
1116
|
-
*/
|
|
1117
|
-
'slugs'?: Array<string>;
|
|
1118
1112
|
/**
|
|
1119
1113
|
*
|
|
1120
1114
|
* @type {IImage}
|
|
@@ -1140,12 +1134,6 @@ export interface IBrandPostRequest {
|
|
|
1140
1134
|
* @memberof IBrandPostRequest
|
|
1141
1135
|
*/
|
|
1142
1136
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
1143
|
-
/**
|
|
1144
|
-
*
|
|
1145
|
-
* @type {Array<string>}
|
|
1146
|
-
* @memberof IBrandPostRequest
|
|
1147
|
-
*/
|
|
1148
|
-
'slugs': Array<string>;
|
|
1149
1137
|
/**
|
|
1150
1138
|
*
|
|
1151
1139
|
* @type {IImage}
|
|
@@ -1436,12 +1424,6 @@ export interface ICategoryPatchRequest {
|
|
|
1436
1424
|
* @memberof ICategoryPatchRequest
|
|
1437
1425
|
*/
|
|
1438
1426
|
'contents'?: PartialRecordLanguageEnumIContentsValue;
|
|
1439
|
-
/**
|
|
1440
|
-
*
|
|
1441
|
-
* @type {Array<string>}
|
|
1442
|
-
* @memberof ICategoryPatchRequest
|
|
1443
|
-
*/
|
|
1444
|
-
'slugs'?: Array<string>;
|
|
1445
1427
|
/**
|
|
1446
1428
|
*
|
|
1447
1429
|
* @type {IImage}
|
|
@@ -1473,12 +1455,6 @@ export interface ICategoryPostRequest {
|
|
|
1473
1455
|
* @memberof ICategoryPostRequest
|
|
1474
1456
|
*/
|
|
1475
1457
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
1476
|
-
/**
|
|
1477
|
-
*
|
|
1478
|
-
* @type {Array<string>}
|
|
1479
|
-
* @memberof ICategoryPostRequest
|
|
1480
|
-
*/
|
|
1481
|
-
'slugs': Array<string>;
|
|
1482
1458
|
/**
|
|
1483
1459
|
*
|
|
1484
1460
|
* @type {IImage}
|
|
@@ -1822,12 +1798,6 @@ export interface ICollectionPatchRequest {
|
|
|
1822
1798
|
* @memberof ICollectionPatchRequest
|
|
1823
1799
|
*/
|
|
1824
1800
|
'contents'?: PartialRecordLanguageEnumIContentsValue;
|
|
1825
|
-
/**
|
|
1826
|
-
*
|
|
1827
|
-
* @type {Array<string>}
|
|
1828
|
-
* @memberof ICollectionPatchRequest
|
|
1829
|
-
*/
|
|
1830
|
-
'slugs'?: Array<string>;
|
|
1831
1801
|
/**
|
|
1832
1802
|
*
|
|
1833
1803
|
* @type {IImage}
|
|
@@ -1853,12 +1823,6 @@ export interface ICollectionPostRequest {
|
|
|
1853
1823
|
* @memberof ICollectionPostRequest
|
|
1854
1824
|
*/
|
|
1855
1825
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
1856
|
-
/**
|
|
1857
|
-
*
|
|
1858
|
-
* @type {Array<string>}
|
|
1859
|
-
* @memberof ICollectionPostRequest
|
|
1860
|
-
*/
|
|
1861
|
-
'slugs': Array<string>;
|
|
1862
1826
|
/**
|
|
1863
1827
|
*
|
|
1864
1828
|
* @type {IImage}
|
|
@@ -2093,12 +2057,6 @@ export interface ICompany {
|
|
|
2093
2057
|
* @memberof ICompany
|
|
2094
2058
|
*/
|
|
2095
2059
|
'domains': Array<string>;
|
|
2096
|
-
/**
|
|
2097
|
-
*
|
|
2098
|
-
* @type {string}
|
|
2099
|
-
* @memberof ICompany
|
|
2100
|
-
*/
|
|
2101
|
-
'dnsZoneId'?: string;
|
|
2102
2060
|
/**
|
|
2103
2061
|
*
|
|
2104
2062
|
* @type {string}
|
|
@@ -2420,12 +2378,6 @@ export interface ICompanyAdminResponse {
|
|
|
2420
2378
|
* @memberof ICompanyAdminResponse
|
|
2421
2379
|
*/
|
|
2422
2380
|
'domains': Array<string>;
|
|
2423
|
-
/**
|
|
2424
|
-
*
|
|
2425
|
-
* @type {string}
|
|
2426
|
-
* @memberof ICompanyAdminResponse
|
|
2427
|
-
*/
|
|
2428
|
-
'dnsZoneId'?: string;
|
|
2429
2381
|
/**
|
|
2430
2382
|
*
|
|
2431
2383
|
* @type {string}
|
|
@@ -3126,12 +3078,6 @@ export interface ICompanyPatchRequest {
|
|
|
3126
3078
|
* @memberof ICompanyPatchRequest
|
|
3127
3079
|
*/
|
|
3128
3080
|
'paymentGateways'?: Array<ICompanyPatchRequestPaymentGatewaysInner>;
|
|
3129
|
-
/**
|
|
3130
|
-
*
|
|
3131
|
-
* @type {string}
|
|
3132
|
-
* @memberof ICompanyPatchRequest
|
|
3133
|
-
*/
|
|
3134
|
-
'dnsZoneId'?: string;
|
|
3135
3081
|
/**
|
|
3136
3082
|
*
|
|
3137
3083
|
* @type {string}
|
|
@@ -3471,12 +3417,6 @@ export interface ICompanyResponse {
|
|
|
3471
3417
|
* @memberof ICompanyResponse
|
|
3472
3418
|
*/
|
|
3473
3419
|
'domains': Array<string>;
|
|
3474
|
-
/**
|
|
3475
|
-
*
|
|
3476
|
-
* @type {string}
|
|
3477
|
-
* @memberof ICompanyResponse
|
|
3478
|
-
*/
|
|
3479
|
-
'dnsZoneId'?: string;
|
|
3480
3420
|
/**
|
|
3481
3421
|
*
|
|
3482
3422
|
* @type {string}
|
|
@@ -5869,6 +5809,12 @@ export interface IOrderResponse {
|
|
|
5869
5809
|
* @memberof IOrderResponse
|
|
5870
5810
|
*/
|
|
5871
5811
|
'paymentStatus': OrderPaymentStatusEnum;
|
|
5812
|
+
/**
|
|
5813
|
+
*
|
|
5814
|
+
* @type {boolean}
|
|
5815
|
+
* @memberof IOrderResponse
|
|
5816
|
+
*/
|
|
5817
|
+
'invoiceAdded': boolean;
|
|
5872
5818
|
}
|
|
5873
5819
|
/**
|
|
5874
5820
|
*
|
|
@@ -6311,12 +6257,6 @@ export interface IPagePatchRequest {
|
|
|
6311
6257
|
* @memberof IPagePatchRequest
|
|
6312
6258
|
*/
|
|
6313
6259
|
'contents'?: PartialRecordLanguageEnumIContentsValue;
|
|
6314
|
-
/**
|
|
6315
|
-
*
|
|
6316
|
-
* @type {Array<string>}
|
|
6317
|
-
* @memberof IPagePatchRequest
|
|
6318
|
-
*/
|
|
6319
|
-
'slugs'?: Array<string>;
|
|
6320
6260
|
/**
|
|
6321
6261
|
*
|
|
6322
6262
|
* @type {IImage}
|
|
@@ -6348,12 +6288,6 @@ export interface IPagePostRequest {
|
|
|
6348
6288
|
* @memberof IPagePostRequest
|
|
6349
6289
|
*/
|
|
6350
6290
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
6351
|
-
/**
|
|
6352
|
-
*
|
|
6353
|
-
* @type {Array<string>}
|
|
6354
|
-
* @memberof IPagePostRequest
|
|
6355
|
-
*/
|
|
6356
|
-
'slugs': Array<string>;
|
|
6357
6291
|
/**
|
|
6358
6292
|
*
|
|
6359
6293
|
* @type {IImage}
|
|
@@ -7152,12 +7086,6 @@ export interface IProductPatchRequest {
|
|
|
7152
7086
|
* @memberof IProductPatchRequest
|
|
7153
7087
|
*/
|
|
7154
7088
|
'contents'?: PartialRecordLanguageEnumIContentsValue;
|
|
7155
|
-
/**
|
|
7156
|
-
*
|
|
7157
|
-
* @type {Array<string>}
|
|
7158
|
-
* @memberof IProductPatchRequest
|
|
7159
|
-
*/
|
|
7160
|
-
'slugs'?: Array<string>;
|
|
7161
7089
|
/**
|
|
7162
7090
|
*
|
|
7163
7091
|
* @type {Array<VariantType>}
|
|
@@ -7243,12 +7171,6 @@ export interface IProductPostRequest {
|
|
|
7243
7171
|
* @memberof IProductPostRequest
|
|
7244
7172
|
*/
|
|
7245
7173
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
7246
|
-
/**
|
|
7247
|
-
*
|
|
7248
|
-
* @type {Array<string>}
|
|
7249
|
-
* @memberof IProductPostRequest
|
|
7250
|
-
*/
|
|
7251
|
-
'slugs': Array<string>;
|
|
7252
7174
|
/**
|
|
7253
7175
|
*
|
|
7254
7176
|
* @type {Array<VariantType>}
|
|
@@ -9736,31 +9658,25 @@ export interface PickIBasketExcludeKeyofIBasketItems {
|
|
|
9736
9658
|
/**
|
|
9737
9659
|
* From T, pick a set of properties whose keys are in the union K
|
|
9738
9660
|
* @export
|
|
9739
|
-
* @interface
|
|
9661
|
+
* @interface PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs
|
|
9740
9662
|
*/
|
|
9741
|
-
export interface
|
|
9663
|
+
export interface PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs {
|
|
9742
9664
|
/**
|
|
9743
9665
|
*
|
|
9744
9666
|
* @type {string}
|
|
9745
|
-
* @memberof
|
|
9667
|
+
* @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs
|
|
9746
9668
|
*/
|
|
9747
9669
|
'company': string;
|
|
9748
9670
|
/**
|
|
9749
9671
|
*
|
|
9750
9672
|
* @type {PartialRecordLanguageEnumIContentsValue}
|
|
9751
|
-
* @memberof
|
|
9673
|
+
* @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs
|
|
9752
9674
|
*/
|
|
9753
9675
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
9754
|
-
/**
|
|
9755
|
-
*
|
|
9756
|
-
* @type {Array<string>}
|
|
9757
|
-
* @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponse
|
|
9758
|
-
*/
|
|
9759
|
-
'slugs': Array<string>;
|
|
9760
9676
|
/**
|
|
9761
9677
|
*
|
|
9762
9678
|
* @type {IImage}
|
|
9763
|
-
* @memberof
|
|
9679
|
+
* @memberof PickIBrandResponseExcludeKeyofIBrandResponseKeyofMongoResponseOrSlugs
|
|
9764
9680
|
*/
|
|
9765
9681
|
'thumbnail'?: IImage;
|
|
9766
9682
|
}
|
|
@@ -9828,37 +9744,31 @@ export interface PickICategoryExcludeKeyofICategoryAttributes {
|
|
|
9828
9744
|
/**
|
|
9829
9745
|
* From T, pick a set of properties whose keys are in the union K
|
|
9830
9746
|
* @export
|
|
9831
|
-
* @interface
|
|
9747
|
+
* @interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
|
|
9832
9748
|
*/
|
|
9833
|
-
export interface
|
|
9749
|
+
export interface PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs {
|
|
9834
9750
|
/**
|
|
9835
9751
|
*
|
|
9836
9752
|
* @type {string}
|
|
9837
|
-
* @memberof
|
|
9753
|
+
* @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
|
|
9838
9754
|
*/
|
|
9839
9755
|
'company': string;
|
|
9840
9756
|
/**
|
|
9841
9757
|
*
|
|
9842
9758
|
* @type {PartialRecordLanguageEnumIContentsValue}
|
|
9843
|
-
* @memberof
|
|
9759
|
+
* @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
|
|
9844
9760
|
*/
|
|
9845
9761
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
9846
|
-
/**
|
|
9847
|
-
*
|
|
9848
|
-
* @type {Array<string>}
|
|
9849
|
-
* @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributes
|
|
9850
|
-
*/
|
|
9851
|
-
'slugs': Array<string>;
|
|
9852
9762
|
/**
|
|
9853
9763
|
*
|
|
9854
9764
|
* @type {IImage}
|
|
9855
|
-
* @memberof
|
|
9765
|
+
* @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
|
|
9856
9766
|
*/
|
|
9857
9767
|
'thumbnail'?: IImage;
|
|
9858
9768
|
/**
|
|
9859
9769
|
*
|
|
9860
9770
|
* @type {string}
|
|
9861
|
-
* @memberof
|
|
9771
|
+
* @memberof PickICategoryResponseExcludeKeyofICategoryResponseKeyofMongoResponseOrAttributesOrSlugs
|
|
9862
9772
|
*/
|
|
9863
9773
|
'main'?: string;
|
|
9864
9774
|
}
|
|
@@ -9969,31 +9879,25 @@ export type PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDate
|
|
|
9969
9879
|
/**
|
|
9970
9880
|
* From T, pick a set of properties whose keys are in the union K
|
|
9971
9881
|
* @export
|
|
9972
|
-
* @interface
|
|
9882
|
+
* @interface PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
|
|
9973
9883
|
*/
|
|
9974
|
-
export interface
|
|
9884
|
+
export interface PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs {
|
|
9975
9885
|
/**
|
|
9976
9886
|
*
|
|
9977
9887
|
* @type {string}
|
|
9978
|
-
* @memberof
|
|
9888
|
+
* @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
|
|
9979
9889
|
*/
|
|
9980
9890
|
'company': string;
|
|
9981
9891
|
/**
|
|
9982
9892
|
*
|
|
9983
9893
|
* @type {PartialRecordLanguageEnumIContentsValue}
|
|
9984
|
-
* @memberof
|
|
9894
|
+
* @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
|
|
9985
9895
|
*/
|
|
9986
9896
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
9987
|
-
/**
|
|
9988
|
-
*
|
|
9989
|
-
* @type {Array<string>}
|
|
9990
|
-
* @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplates
|
|
9991
|
-
*/
|
|
9992
|
-
'slugs': Array<string>;
|
|
9993
9897
|
/**
|
|
9994
9898
|
*
|
|
9995
9899
|
* @type {IImage}
|
|
9996
|
-
* @memberof
|
|
9900
|
+
* @memberof PickICollectionResponseExcludeKeyofICollectionResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
|
|
9997
9901
|
*/
|
|
9998
9902
|
'thumbnail'?: IImage;
|
|
9999
9903
|
}
|
|
@@ -10155,12 +10059,6 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
|
|
|
10155
10059
|
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
10156
10060
|
*/
|
|
10157
10061
|
'domains': Array<string>;
|
|
10158
|
-
/**
|
|
10159
|
-
*
|
|
10160
|
-
* @type {string}
|
|
10161
|
-
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
10162
|
-
*/
|
|
10163
|
-
'dnsZoneId'?: string;
|
|
10164
10062
|
/**
|
|
10165
10063
|
*
|
|
10166
10064
|
* @type {string}
|
|
@@ -10735,6 +10633,12 @@ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframe {
|
|
|
10735
10633
|
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
10736
10634
|
*/
|
|
10737
10635
|
'paymentStatus': OrderPaymentStatusEnum;
|
|
10636
|
+
/**
|
|
10637
|
+
*
|
|
10638
|
+
* @type {boolean}
|
|
10639
|
+
* @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
|
|
10640
|
+
*/
|
|
10641
|
+
'invoiceAdded': boolean;
|
|
10738
10642
|
}
|
|
10739
10643
|
/**
|
|
10740
10644
|
*
|
|
@@ -11022,37 +10926,31 @@ export interface PickIPageExcludeKeyofIPageTemplate {
|
|
|
11022
10926
|
/**
|
|
11023
10927
|
* From T, pick a set of properties whose keys are in the union K
|
|
11024
10928
|
* @export
|
|
11025
|
-
* @interface
|
|
10929
|
+
* @interface PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
|
|
11026
10930
|
*/
|
|
11027
|
-
export interface
|
|
10931
|
+
export interface PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs {
|
|
11028
10932
|
/**
|
|
11029
10933
|
*
|
|
11030
10934
|
* @type {string}
|
|
11031
|
-
* @memberof
|
|
10935
|
+
* @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
|
|
11032
10936
|
*/
|
|
11033
10937
|
'company': string;
|
|
11034
10938
|
/**
|
|
11035
10939
|
*
|
|
11036
10940
|
* @type {PartialRecordLanguageEnumIContentsValue}
|
|
11037
|
-
* @memberof
|
|
10941
|
+
* @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
|
|
11038
10942
|
*/
|
|
11039
10943
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
11040
|
-
/**
|
|
11041
|
-
*
|
|
11042
|
-
* @type {Array<string>}
|
|
11043
|
-
* @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplates
|
|
11044
|
-
*/
|
|
11045
|
-
'slugs': Array<string>;
|
|
11046
10944
|
/**
|
|
11047
10945
|
*
|
|
11048
10946
|
* @type {IImage}
|
|
11049
|
-
* @memberof
|
|
10947
|
+
* @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
|
|
11050
10948
|
*/
|
|
11051
10949
|
'thumbnail'?: IImage;
|
|
11052
10950
|
/**
|
|
11053
10951
|
*
|
|
11054
10952
|
* @type {PageTypeEnum}
|
|
11055
|
-
* @memberof
|
|
10953
|
+
* @memberof PickIPageResponseExcludeKeyofIPageResponseKeyofMongoResponseOrTemplateOrTemplatesOrSlugs
|
|
11056
10954
|
*/
|
|
11057
10955
|
'type': PageTypeEnum;
|
|
11058
10956
|
}
|
|
@@ -11327,12 +11225,6 @@ export interface PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPo
|
|
|
11327
11225
|
* @memberof PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPostRequestOmitFields
|
|
11328
11226
|
*/
|
|
11329
11227
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
11330
|
-
/**
|
|
11331
|
-
*
|
|
11332
|
-
* @type {Array<string>}
|
|
11333
|
-
* @memberof PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPostRequestOmitFields
|
|
11334
|
-
*/
|
|
11335
|
-
'slugs': Array<string>;
|
|
11336
11228
|
/**
|
|
11337
11229
|
*
|
|
11338
11230
|
* @type {Array<VariantType>}
|
|
@@ -18365,6 +18257,13 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
18365
18257
|
* @throws {RequiredError}
|
|
18366
18258
|
*/
|
|
18367
18259
|
getOrderById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18260
|
+
/**
|
|
18261
|
+
*
|
|
18262
|
+
* @param {string} orderId
|
|
18263
|
+
* @param {*} [options] Override http request option.
|
|
18264
|
+
* @throws {RequiredError}
|
|
18265
|
+
*/
|
|
18266
|
+
getOrderInvoice: (orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18368
18267
|
/**
|
|
18369
18268
|
*
|
|
18370
18269
|
* @param {string} id
|
|
@@ -18432,6 +18331,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
18432
18331
|
* @throws {RequiredError}
|
|
18433
18332
|
*/
|
|
18434
18333
|
updateShipped: (orderId: string, shippedId: string, iOrderShippedUpdatePatchRequest: IOrderShippedUpdatePatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18334
|
+
/**
|
|
18335
|
+
*
|
|
18336
|
+
* @param {string} orderId
|
|
18337
|
+
* @param {File} file
|
|
18338
|
+
* @param {*} [options] Override http request option.
|
|
18339
|
+
* @throws {RequiredError}
|
|
18340
|
+
*/
|
|
18341
|
+
uploadOrderInvoice: (orderId: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18435
18342
|
};
|
|
18436
18343
|
/**
|
|
18437
18344
|
* OrderApi - functional programming interface
|
|
@@ -18498,6 +18405,13 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
18498
18405
|
* @throws {RequiredError}
|
|
18499
18406
|
*/
|
|
18500
18407
|
getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrderResponse>>;
|
|
18408
|
+
/**
|
|
18409
|
+
*
|
|
18410
|
+
* @param {string} orderId
|
|
18411
|
+
* @param {*} [options] Override http request option.
|
|
18412
|
+
* @throws {RequiredError}
|
|
18413
|
+
*/
|
|
18414
|
+
getOrderInvoice(orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
18501
18415
|
/**
|
|
18502
18416
|
*
|
|
18503
18417
|
* @param {string} id
|
|
@@ -18565,6 +18479,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
18565
18479
|
* @throws {RequiredError}
|
|
18566
18480
|
*/
|
|
18567
18481
|
updateShipped(orderId: string, shippedId: string, iOrderShippedUpdatePatchRequest: IOrderShippedUpdatePatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
18482
|
+
/**
|
|
18483
|
+
*
|
|
18484
|
+
* @param {string} orderId
|
|
18485
|
+
* @param {File} file
|
|
18486
|
+
* @param {*} [options] Override http request option.
|
|
18487
|
+
* @throws {RequiredError}
|
|
18488
|
+
*/
|
|
18489
|
+
uploadOrderInvoice(orderId: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
18568
18490
|
};
|
|
18569
18491
|
/**
|
|
18570
18492
|
* OrderApi - factory interface
|
|
@@ -18620,6 +18542,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
18620
18542
|
* @throws {RequiredError}
|
|
18621
18543
|
*/
|
|
18622
18544
|
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrderResponse>;
|
|
18545
|
+
/**
|
|
18546
|
+
*
|
|
18547
|
+
* @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
|
|
18548
|
+
* @param {*} [options] Override http request option.
|
|
18549
|
+
* @throws {RequiredError}
|
|
18550
|
+
*/
|
|
18551
|
+
getOrderInvoice(requestParameters: OrderApiGetOrderInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
18623
18552
|
/**
|
|
18624
18553
|
*
|
|
18625
18554
|
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
@@ -18669,6 +18598,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
18669
18598
|
* @throws {RequiredError}
|
|
18670
18599
|
*/
|
|
18671
18600
|
updateShipped(requestParameters: OrderApiUpdateShippedRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
18601
|
+
/**
|
|
18602
|
+
*
|
|
18603
|
+
* @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
|
|
18604
|
+
* @param {*} [options] Override http request option.
|
|
18605
|
+
* @throws {RequiredError}
|
|
18606
|
+
*/
|
|
18607
|
+
uploadOrderInvoice(requestParameters: OrderApiUploadOrderInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
18672
18608
|
};
|
|
18673
18609
|
/**
|
|
18674
18610
|
* Request parameters for createOrder operation in OrderApi.
|
|
@@ -18827,6 +18763,19 @@ export interface OrderApiGetOrderByIdRequest {
|
|
|
18827
18763
|
*/
|
|
18828
18764
|
readonly id: string;
|
|
18829
18765
|
}
|
|
18766
|
+
/**
|
|
18767
|
+
* Request parameters for getOrderInvoice operation in OrderApi.
|
|
18768
|
+
* @export
|
|
18769
|
+
* @interface OrderApiGetOrderInvoiceRequest
|
|
18770
|
+
*/
|
|
18771
|
+
export interface OrderApiGetOrderInvoiceRequest {
|
|
18772
|
+
/**
|
|
18773
|
+
*
|
|
18774
|
+
* @type {string}
|
|
18775
|
+
* @memberof OrderApiGetOrderInvoice
|
|
18776
|
+
*/
|
|
18777
|
+
readonly orderId: string;
|
|
18778
|
+
}
|
|
18830
18779
|
/**
|
|
18831
18780
|
* Request parameters for getOrderProductReview operation in OrderApi.
|
|
18832
18781
|
* @export
|
|
@@ -19026,6 +18975,25 @@ export interface OrderApiUpdateShippedRequest {
|
|
|
19026
18975
|
*/
|
|
19027
18976
|
readonly iOrderShippedUpdatePatchRequest: IOrderShippedUpdatePatchRequest;
|
|
19028
18977
|
}
|
|
18978
|
+
/**
|
|
18979
|
+
* Request parameters for uploadOrderInvoice operation in OrderApi.
|
|
18980
|
+
* @export
|
|
18981
|
+
* @interface OrderApiUploadOrderInvoiceRequest
|
|
18982
|
+
*/
|
|
18983
|
+
export interface OrderApiUploadOrderInvoiceRequest {
|
|
18984
|
+
/**
|
|
18985
|
+
*
|
|
18986
|
+
* @type {string}
|
|
18987
|
+
* @memberof OrderApiUploadOrderInvoice
|
|
18988
|
+
*/
|
|
18989
|
+
readonly orderId: string;
|
|
18990
|
+
/**
|
|
18991
|
+
*
|
|
18992
|
+
* @type {File}
|
|
18993
|
+
* @memberof OrderApiUploadOrderInvoice
|
|
18994
|
+
*/
|
|
18995
|
+
readonly file: File;
|
|
18996
|
+
}
|
|
19029
18997
|
/**
|
|
19030
18998
|
* OrderApi - object-oriented interface
|
|
19031
18999
|
* @export
|
|
@@ -19089,6 +19057,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
19089
19057
|
* @memberof OrderApi
|
|
19090
19058
|
*/
|
|
19091
19059
|
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrderResponse, any>>;
|
|
19060
|
+
/**
|
|
19061
|
+
*
|
|
19062
|
+
* @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
|
|
19063
|
+
* @param {*} [options] Override http request option.
|
|
19064
|
+
* @throws {RequiredError}
|
|
19065
|
+
* @memberof OrderApi
|
|
19066
|
+
*/
|
|
19067
|
+
getOrderInvoice(requestParameters: OrderApiGetOrderInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
19092
19068
|
/**
|
|
19093
19069
|
*
|
|
19094
19070
|
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
@@ -19145,6 +19121,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
19145
19121
|
* @memberof OrderApi
|
|
19146
19122
|
*/
|
|
19147
19123
|
updateShipped(requestParameters: OrderApiUpdateShippedRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
19124
|
+
/**
|
|
19125
|
+
*
|
|
19126
|
+
* @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
|
|
19127
|
+
* @param {*} [options] Override http request option.
|
|
19128
|
+
* @throws {RequiredError}
|
|
19129
|
+
* @memberof OrderApi
|
|
19130
|
+
*/
|
|
19131
|
+
uploadOrderInvoice(requestParameters: OrderApiUploadOrderInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
19148
19132
|
}
|
|
19149
19133
|
/**
|
|
19150
19134
|
* @export
|
package/dist/api/api.js
CHANGED
|
@@ -8310,6 +8310,34 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
8310
8310
|
options: localVarRequestOptions,
|
|
8311
8311
|
};
|
|
8312
8312
|
},
|
|
8313
|
+
/**
|
|
8314
|
+
*
|
|
8315
|
+
* @param {string} orderId
|
|
8316
|
+
* @param {*} [options] Override http request option.
|
|
8317
|
+
* @throws {RequiredError}
|
|
8318
|
+
*/
|
|
8319
|
+
getOrderInvoice: async (orderId, options = {}) => {
|
|
8320
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
8321
|
+
(0, common_1.assertParamExists)('getOrderInvoice', 'orderId', orderId);
|
|
8322
|
+
const localVarPath = `/api/orders/{orderId}/invoice`
|
|
8323
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
8324
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8325
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8326
|
+
let baseOptions;
|
|
8327
|
+
if (configuration) {
|
|
8328
|
+
baseOptions = configuration.baseOptions;
|
|
8329
|
+
}
|
|
8330
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
8331
|
+
const localVarHeaderParameter = {};
|
|
8332
|
+
const localVarQueryParameter = {};
|
|
8333
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8334
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8335
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8336
|
+
return {
|
|
8337
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8338
|
+
options: localVarRequestOptions,
|
|
8339
|
+
};
|
|
8340
|
+
},
|
|
8313
8341
|
/**
|
|
8314
8342
|
*
|
|
8315
8343
|
* @param {string} id
|
|
@@ -8589,6 +8617,43 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
8589
8617
|
options: localVarRequestOptions,
|
|
8590
8618
|
};
|
|
8591
8619
|
},
|
|
8620
|
+
/**
|
|
8621
|
+
*
|
|
8622
|
+
* @param {string} orderId
|
|
8623
|
+
* @param {File} file
|
|
8624
|
+
* @param {*} [options] Override http request option.
|
|
8625
|
+
* @throws {RequiredError}
|
|
8626
|
+
*/
|
|
8627
|
+
uploadOrderInvoice: async (orderId, file, options = {}) => {
|
|
8628
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
8629
|
+
(0, common_1.assertParamExists)('uploadOrderInvoice', 'orderId', orderId);
|
|
8630
|
+
// verify required parameter 'file' is not null or undefined
|
|
8631
|
+
(0, common_1.assertParamExists)('uploadOrderInvoice', 'file', file);
|
|
8632
|
+
const localVarPath = `/api/orders/{orderId}/invoice`
|
|
8633
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
8634
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8635
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8636
|
+
let baseOptions;
|
|
8637
|
+
if (configuration) {
|
|
8638
|
+
baseOptions = configuration.baseOptions;
|
|
8639
|
+
}
|
|
8640
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
8641
|
+
const localVarHeaderParameter = {};
|
|
8642
|
+
const localVarQueryParameter = {};
|
|
8643
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
8644
|
+
if (file !== undefined) {
|
|
8645
|
+
localVarFormParams.append('file', file);
|
|
8646
|
+
}
|
|
8647
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
8648
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8649
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8650
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8651
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
8652
|
+
return {
|
|
8653
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8654
|
+
options: localVarRequestOptions,
|
|
8655
|
+
};
|
|
8656
|
+
},
|
|
8592
8657
|
};
|
|
8593
8658
|
};
|
|
8594
8659
|
exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
|
|
@@ -8694,6 +8759,18 @@ const OrderApiFp = function (configuration) {
|
|
|
8694
8759
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrderById']?.[localVarOperationServerIndex]?.url;
|
|
8695
8760
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8696
8761
|
},
|
|
8762
|
+
/**
|
|
8763
|
+
*
|
|
8764
|
+
* @param {string} orderId
|
|
8765
|
+
* @param {*} [options] Override http request option.
|
|
8766
|
+
* @throws {RequiredError}
|
|
8767
|
+
*/
|
|
8768
|
+
async getOrderInvoice(orderId, options) {
|
|
8769
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderInvoice(orderId, options);
|
|
8770
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8771
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrderInvoice']?.[localVarOperationServerIndex]?.url;
|
|
8772
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8773
|
+
},
|
|
8697
8774
|
/**
|
|
8698
8775
|
*
|
|
8699
8776
|
* @param {string} id
|
|
@@ -8796,6 +8873,19 @@ const OrderApiFp = function (configuration) {
|
|
|
8796
8873
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.updateShipped']?.[localVarOperationServerIndex]?.url;
|
|
8797
8874
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8798
8875
|
},
|
|
8876
|
+
/**
|
|
8877
|
+
*
|
|
8878
|
+
* @param {string} orderId
|
|
8879
|
+
* @param {File} file
|
|
8880
|
+
* @param {*} [options] Override http request option.
|
|
8881
|
+
* @throws {RequiredError}
|
|
8882
|
+
*/
|
|
8883
|
+
async uploadOrderInvoice(orderId, file, options) {
|
|
8884
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadOrderInvoice(orderId, file, options);
|
|
8885
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8886
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.uploadOrderInvoice']?.[localVarOperationServerIndex]?.url;
|
|
8887
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8888
|
+
},
|
|
8799
8889
|
};
|
|
8800
8890
|
};
|
|
8801
8891
|
exports.OrderApiFp = OrderApiFp;
|
|
@@ -8869,6 +8959,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
8869
8959
|
getOrderById(requestParameters, options) {
|
|
8870
8960
|
return localVarFp.getOrderById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
8871
8961
|
},
|
|
8962
|
+
/**
|
|
8963
|
+
*
|
|
8964
|
+
* @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
|
|
8965
|
+
* @param {*} [options] Override http request option.
|
|
8966
|
+
* @throws {RequiredError}
|
|
8967
|
+
*/
|
|
8968
|
+
getOrderInvoice(requestParameters, options) {
|
|
8969
|
+
return localVarFp.getOrderInvoice(requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
8970
|
+
},
|
|
8872
8971
|
/**
|
|
8873
8972
|
*
|
|
8874
8973
|
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
@@ -8932,6 +9031,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
8932
9031
|
updateShipped(requestParameters, options) {
|
|
8933
9032
|
return localVarFp.updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(axios, basePath));
|
|
8934
9033
|
},
|
|
9034
|
+
/**
|
|
9035
|
+
*
|
|
9036
|
+
* @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
|
|
9037
|
+
* @param {*} [options] Override http request option.
|
|
9038
|
+
* @throws {RequiredError}
|
|
9039
|
+
*/
|
|
9040
|
+
uploadOrderInvoice(requestParameters, options) {
|
|
9041
|
+
return localVarFp.uploadOrderInvoice(requestParameters.orderId, requestParameters.file, options).then((request) => request(axios, basePath));
|
|
9042
|
+
},
|
|
8935
9043
|
};
|
|
8936
9044
|
};
|
|
8937
9045
|
exports.OrderApiFactory = OrderApiFactory;
|
|
@@ -9012,6 +9120,16 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
9012
9120
|
getOrderById(requestParameters, options) {
|
|
9013
9121
|
return (0, exports.OrderApiFp)(this.configuration).getOrderById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
9014
9122
|
}
|
|
9123
|
+
/**
|
|
9124
|
+
*
|
|
9125
|
+
* @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
|
|
9126
|
+
* @param {*} [options] Override http request option.
|
|
9127
|
+
* @throws {RequiredError}
|
|
9128
|
+
* @memberof OrderApi
|
|
9129
|
+
*/
|
|
9130
|
+
getOrderInvoice(requestParameters, options) {
|
|
9131
|
+
return (0, exports.OrderApiFp)(this.configuration).getOrderInvoice(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
9132
|
+
}
|
|
9015
9133
|
/**
|
|
9016
9134
|
*
|
|
9017
9135
|
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
@@ -9082,6 +9200,16 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
9082
9200
|
updateShipped(requestParameters, options) {
|
|
9083
9201
|
return (0, exports.OrderApiFp)(this.configuration).updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9084
9202
|
}
|
|
9203
|
+
/**
|
|
9204
|
+
*
|
|
9205
|
+
* @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
|
|
9206
|
+
* @param {*} [options] Override http request option.
|
|
9207
|
+
* @throws {RequiredError}
|
|
9208
|
+
* @memberof OrderApi
|
|
9209
|
+
*/
|
|
9210
|
+
uploadOrderInvoice(requestParameters, options) {
|
|
9211
|
+
return (0, exports.OrderApiFp)(this.configuration).uploadOrderInvoice(requestParameters.orderId, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
9212
|
+
}
|
|
9085
9213
|
}
|
|
9086
9214
|
exports.OrderApi = OrderApi;
|
|
9087
9215
|
/**
|
package/dist/api/api.mjs
CHANGED
|
@@ -8254,6 +8254,34 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
8254
8254
|
options: localVarRequestOptions,
|
|
8255
8255
|
};
|
|
8256
8256
|
},
|
|
8257
|
+
/**
|
|
8258
|
+
*
|
|
8259
|
+
* @param {string} orderId
|
|
8260
|
+
* @param {*} [options] Override http request option.
|
|
8261
|
+
* @throws {RequiredError}
|
|
8262
|
+
*/
|
|
8263
|
+
getOrderInvoice: async (orderId, options = {}) => {
|
|
8264
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
8265
|
+
assertParamExists('getOrderInvoice', 'orderId', orderId);
|
|
8266
|
+
const localVarPath = `/api/orders/{orderId}/invoice`
|
|
8267
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
8268
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8269
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8270
|
+
let baseOptions;
|
|
8271
|
+
if (configuration) {
|
|
8272
|
+
baseOptions = configuration.baseOptions;
|
|
8273
|
+
}
|
|
8274
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
8275
|
+
const localVarHeaderParameter = {};
|
|
8276
|
+
const localVarQueryParameter = {};
|
|
8277
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8279
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8280
|
+
return {
|
|
8281
|
+
url: toPathString(localVarUrlObj),
|
|
8282
|
+
options: localVarRequestOptions,
|
|
8283
|
+
};
|
|
8284
|
+
},
|
|
8257
8285
|
/**
|
|
8258
8286
|
*
|
|
8259
8287
|
* @param {string} id
|
|
@@ -8533,6 +8561,43 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
8533
8561
|
options: localVarRequestOptions,
|
|
8534
8562
|
};
|
|
8535
8563
|
},
|
|
8564
|
+
/**
|
|
8565
|
+
*
|
|
8566
|
+
* @param {string} orderId
|
|
8567
|
+
* @param {File} file
|
|
8568
|
+
* @param {*} [options] Override http request option.
|
|
8569
|
+
* @throws {RequiredError}
|
|
8570
|
+
*/
|
|
8571
|
+
uploadOrderInvoice: async (orderId, file, options = {}) => {
|
|
8572
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
8573
|
+
assertParamExists('uploadOrderInvoice', 'orderId', orderId);
|
|
8574
|
+
// verify required parameter 'file' is not null or undefined
|
|
8575
|
+
assertParamExists('uploadOrderInvoice', 'file', file);
|
|
8576
|
+
const localVarPath = `/api/orders/{orderId}/invoice`
|
|
8577
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
8578
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8579
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8580
|
+
let baseOptions;
|
|
8581
|
+
if (configuration) {
|
|
8582
|
+
baseOptions = configuration.baseOptions;
|
|
8583
|
+
}
|
|
8584
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
8585
|
+
const localVarHeaderParameter = {};
|
|
8586
|
+
const localVarQueryParameter = {};
|
|
8587
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
8588
|
+
if (file !== undefined) {
|
|
8589
|
+
localVarFormParams.append('file', file);
|
|
8590
|
+
}
|
|
8591
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
8592
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8593
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8594
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8595
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
8596
|
+
return {
|
|
8597
|
+
url: toPathString(localVarUrlObj),
|
|
8598
|
+
options: localVarRequestOptions,
|
|
8599
|
+
};
|
|
8600
|
+
},
|
|
8536
8601
|
};
|
|
8537
8602
|
};
|
|
8538
8603
|
/**
|
|
@@ -8637,6 +8702,18 @@ export const OrderApiFp = function (configuration) {
|
|
|
8637
8702
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderById']?.[localVarOperationServerIndex]?.url;
|
|
8638
8703
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8639
8704
|
},
|
|
8705
|
+
/**
|
|
8706
|
+
*
|
|
8707
|
+
* @param {string} orderId
|
|
8708
|
+
* @param {*} [options] Override http request option.
|
|
8709
|
+
* @throws {RequiredError}
|
|
8710
|
+
*/
|
|
8711
|
+
async getOrderInvoice(orderId, options) {
|
|
8712
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderInvoice(orderId, options);
|
|
8713
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8714
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderInvoice']?.[localVarOperationServerIndex]?.url;
|
|
8715
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8716
|
+
},
|
|
8640
8717
|
/**
|
|
8641
8718
|
*
|
|
8642
8719
|
* @param {string} id
|
|
@@ -8739,6 +8816,19 @@ export const OrderApiFp = function (configuration) {
|
|
|
8739
8816
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateShipped']?.[localVarOperationServerIndex]?.url;
|
|
8740
8817
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8741
8818
|
},
|
|
8819
|
+
/**
|
|
8820
|
+
*
|
|
8821
|
+
* @param {string} orderId
|
|
8822
|
+
* @param {File} file
|
|
8823
|
+
* @param {*} [options] Override http request option.
|
|
8824
|
+
* @throws {RequiredError}
|
|
8825
|
+
*/
|
|
8826
|
+
async uploadOrderInvoice(orderId, file, options) {
|
|
8827
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadOrderInvoice(orderId, file, options);
|
|
8828
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8829
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.uploadOrderInvoice']?.[localVarOperationServerIndex]?.url;
|
|
8830
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8831
|
+
},
|
|
8742
8832
|
};
|
|
8743
8833
|
};
|
|
8744
8834
|
/**
|
|
@@ -8811,6 +8901,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
8811
8901
|
getOrderById(requestParameters, options) {
|
|
8812
8902
|
return localVarFp.getOrderById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
8813
8903
|
},
|
|
8904
|
+
/**
|
|
8905
|
+
*
|
|
8906
|
+
* @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
|
|
8907
|
+
* @param {*} [options] Override http request option.
|
|
8908
|
+
* @throws {RequiredError}
|
|
8909
|
+
*/
|
|
8910
|
+
getOrderInvoice(requestParameters, options) {
|
|
8911
|
+
return localVarFp.getOrderInvoice(requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
8912
|
+
},
|
|
8814
8913
|
/**
|
|
8815
8914
|
*
|
|
8816
8915
|
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
@@ -8874,6 +8973,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
8874
8973
|
updateShipped(requestParameters, options) {
|
|
8875
8974
|
return localVarFp.updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(axios, basePath));
|
|
8876
8975
|
},
|
|
8976
|
+
/**
|
|
8977
|
+
*
|
|
8978
|
+
* @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
|
|
8979
|
+
* @param {*} [options] Override http request option.
|
|
8980
|
+
* @throws {RequiredError}
|
|
8981
|
+
*/
|
|
8982
|
+
uploadOrderInvoice(requestParameters, options) {
|
|
8983
|
+
return localVarFp.uploadOrderInvoice(requestParameters.orderId, requestParameters.file, options).then((request) => request(axios, basePath));
|
|
8984
|
+
},
|
|
8877
8985
|
};
|
|
8878
8986
|
};
|
|
8879
8987
|
/**
|
|
@@ -8953,6 +9061,16 @@ export class OrderApi extends BaseAPI {
|
|
|
8953
9061
|
getOrderById(requestParameters, options) {
|
|
8954
9062
|
return OrderApiFp(this.configuration).getOrderById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
8955
9063
|
}
|
|
9064
|
+
/**
|
|
9065
|
+
*
|
|
9066
|
+
* @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
|
|
9067
|
+
* @param {*} [options] Override http request option.
|
|
9068
|
+
* @throws {RequiredError}
|
|
9069
|
+
* @memberof OrderApi
|
|
9070
|
+
*/
|
|
9071
|
+
getOrderInvoice(requestParameters, options) {
|
|
9072
|
+
return OrderApiFp(this.configuration).getOrderInvoice(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
9073
|
+
}
|
|
8956
9074
|
/**
|
|
8957
9075
|
*
|
|
8958
9076
|
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
@@ -9023,6 +9141,16 @@ export class OrderApi extends BaseAPI {
|
|
|
9023
9141
|
updateShipped(requestParameters, options) {
|
|
9024
9142
|
return OrderApiFp(this.configuration).updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9025
9143
|
}
|
|
9144
|
+
/**
|
|
9145
|
+
*
|
|
9146
|
+
* @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
|
|
9147
|
+
* @param {*} [options] Override http request option.
|
|
9148
|
+
* @throws {RequiredError}
|
|
9149
|
+
* @memberof OrderApi
|
|
9150
|
+
*/
|
|
9151
|
+
uploadOrderInvoice(requestParameters, options) {
|
|
9152
|
+
return OrderApiFp(this.configuration).uploadOrderInvoice(requestParameters.orderId, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
9153
|
+
}
|
|
9026
9154
|
}
|
|
9027
9155
|
/**
|
|
9028
9156
|
* @export
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.109",
|
|
4
4
|
"description": "api-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "e76a9d0c15c33cd39a1c81974553df8968a8e29a"
|
|
41
41
|
}
|