@wix/auto_sdk_export-async-job_export-async-job 1.0.2 → 1.0.4

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.
Files changed (125) hide show
  1. package/build/cjs/index.d.ts +30 -1
  2. package/build/cjs/index.js +365 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1118 -1
  5. package/build/cjs/index.typings.js +343 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +319 -1
  8. package/build/cjs/meta.js +167 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +30 -0
  11. package/build/es/index.mjs +331 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.d.ts → es/index.typings.d.mts} +152 -165
  14. package/build/es/index.typings.mjs +309 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +319 -0
  17. package/build/es/meta.mjs +142 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +30 -1
  20. package/build/internal/cjs/index.js +365 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +1118 -1
  23. package/build/internal/cjs/index.typings.js +343 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +319 -1
  26. package/build/internal/cjs/meta.js +167 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +30 -0
  29. package/build/internal/es/index.mjs +331 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/{cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.d.ts → internal/es/index.typings.d.mts} +152 -165
  32. package/build/internal/es/index.typings.mjs +309 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/internal/es/meta.d.mts +319 -0
  35. package/build/internal/es/meta.mjs +142 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +12 -10
  38. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.d.ts +0 -6
  39. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js +0 -21
  40. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js.map +0 -1
  41. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.d.ts +0 -5
  42. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js +0 -102
  43. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js.map +0 -1
  44. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.d.ts +0 -16
  45. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js +0 -66
  46. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js.map +0 -1
  47. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.d.ts +0 -23
  48. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js +0 -31
  49. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js.map +0 -1
  50. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.d.ts +0 -1132
  51. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js +0 -146
  52. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js.map +0 -1
  53. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js +0 -254
  54. package/build/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.d.ts +0 -6
  65. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js +0 -6
  66. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js.map +0 -1
  67. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.d.ts +0 -5
  68. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js +0 -97
  69. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js.map +0 -1
  70. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.d.ts +0 -16
  71. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js +0 -38
  72. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js.map +0 -1
  73. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.d.ts +0 -23
  74. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js +0 -14
  75. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js.map +0 -1
  76. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.d.ts +0 -1132
  77. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js +0 -143
  78. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js.map +0 -1
  79. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.d.ts +0 -1131
  80. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js +0 -226
  81. package/build/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js.map +0 -1
  82. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.d.ts +0 -6
  83. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js +0 -21
  84. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js.map +0 -1
  85. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.d.ts +0 -5
  86. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js +0 -102
  87. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js.map +0 -1
  88. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.d.ts +0 -16
  89. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js +0 -66
  90. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js.map +0 -1
  91. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.d.ts +0 -23
  92. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js +0 -31
  93. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js.map +0 -1
  94. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.d.ts +0 -1132
  95. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js +0 -146
  96. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js.map +0 -1
  97. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js +0 -254
  98. package/build/internal/cjs/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js.map +0 -1
  99. package/build/internal/es/index.d.ts +0 -1
  100. package/build/internal/es/index.js +0 -2
  101. package/build/internal/es/index.js.map +0 -1
  102. package/build/internal/es/index.typings.d.ts +0 -1
  103. package/build/internal/es/index.typings.js +0 -2
  104. package/build/internal/es/index.typings.js.map +0 -1
  105. package/build/internal/es/meta.d.ts +0 -1
  106. package/build/internal/es/meta.js +0 -2
  107. package/build/internal/es/meta.js.map +0 -1
  108. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.d.ts +0 -6
  109. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js +0 -6
  110. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.context.js.map +0 -1
  111. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.d.ts +0 -5
  112. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js +0 -97
  113. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.js.map +0 -1
  114. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.d.ts +0 -16
  115. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js +0 -38
  116. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.meta.js.map +0 -1
  117. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.d.ts +0 -23
  118. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js +0 -14
  119. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.public.js.map +0 -1
  120. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.d.ts +0 -1132
  121. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js +0 -143
  122. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.types.js.map +0 -1
  123. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.d.ts +0 -1131
  124. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js +0 -226
  125. package/build/internal/es/src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js.map +0 -1
@@ -1,18 +1,346 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
15
9
  };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js"), exports);
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.typings.ts
21
+ var index_typings_exports = {};
22
+ __export(index_typings_exports, {
23
+ ArrayFieldDelimiter: () => ArrayFieldDelimiter,
24
+ DiscountType: () => DiscountType,
25
+ FileType: () => FileType,
26
+ InventoryStatus: () => InventoryStatus,
27
+ MeasurementUnit: () => MeasurementUnit,
28
+ MediaItemType: () => MediaItemType,
29
+ OptionType: () => OptionType,
30
+ ProductType: () => ProductType,
31
+ QueryFieldNumber: () => QueryFieldNumber,
32
+ RuleType: () => RuleType,
33
+ SortOrder: () => SortOrder,
34
+ Status: () => Status,
35
+ createExportAsyncJob: () => createExportAsyncJob2,
36
+ getExportAsyncJob: () => getExportAsyncJob2
37
+ });
38
+ module.exports = __toCommonJS(index_typings_exports);
39
+
40
+ // src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.ts
41
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
42
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
43
+
44
+ // src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.ts
45
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
46
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
47
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
48
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
49
+ function resolveWixFedinfraExportserviceV1ExportServiceUrl(opts) {
50
+ const domainToMappings = {
51
+ "manage._base_domain_": [
52
+ {
53
+ srcPath: "/export-service",
54
+ destPath: ""
55
+ }
56
+ ],
57
+ "bo._base_domain_": [
58
+ {
59
+ srcPath: "/export-service",
60
+ destPath: ""
61
+ }
62
+ ],
63
+ "wixbo.ai": [
64
+ {
65
+ srcPath: "/export-service",
66
+ destPath: ""
67
+ }
68
+ ],
69
+ "wix-bo.com": [
70
+ {
71
+ srcPath: "/export-service",
72
+ destPath: ""
73
+ }
74
+ ],
75
+ "dev._base_domain_": [
76
+ {
77
+ srcPath: "/export-service",
78
+ destPath: ""
79
+ }
80
+ ],
81
+ "platform.rise.ai": [
82
+ {
83
+ srcPath: "/_api/export-service",
84
+ destPath: ""
85
+ }
86
+ ]
87
+ };
88
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
89
+ }
90
+ var PACKAGE_NAME = "@wix/auto_sdk_export-async-job_export-async-job";
91
+ function createExportAsyncJob(payload) {
92
+ function __createExportAsyncJob({ host }) {
93
+ const metadata = {
94
+ entityFqdn: "wix.fedinfra.exportservice.v1.export_async_job",
95
+ method: "POST",
96
+ methodFqn: "wix.fedinfra.exportservice.v1.ExportService.CreateExportAsyncJob",
97
+ packageName: PACKAGE_NAME,
98
+ url: resolveWixFedinfraExportserviceV1ExportServiceUrl({
99
+ protoPath: "/v1/export-async-job",
100
+ data: payload,
101
+ host
102
+ }),
103
+ data: payload,
104
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
105
+ {
106
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
107
+ paths: [{ path: "job.createDate" }, { path: "job.updateDate" }]
108
+ }
109
+ ])
110
+ };
111
+ return metadata;
112
+ }
113
+ return __createExportAsyncJob;
114
+ }
115
+ function getExportAsyncJob(payload) {
116
+ function __getExportAsyncJob({ host }) {
117
+ const metadata = {
118
+ entityFqdn: "wix.fedinfra.exportservice.v1.export_async_job",
119
+ method: "GET",
120
+ methodFqn: "wix.fedinfra.exportservice.v1.ExportService.GetExportAsyncJob",
121
+ packageName: PACKAGE_NAME,
122
+ url: resolveWixFedinfraExportserviceV1ExportServiceUrl({
123
+ protoPath: "/v1/export-async-job/{jobId}",
124
+ data: payload,
125
+ host
126
+ }),
127
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
128
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
129
+ {
130
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
131
+ paths: [{ path: "job.createDate" }, { path: "job.updateDate" }]
132
+ }
133
+ ])
134
+ };
135
+ return metadata;
136
+ }
137
+ return __getExportAsyncJob;
138
+ }
139
+
140
+ // src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.ts
141
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
142
+ SortOrder2["ASC"] = "ASC";
143
+ SortOrder2["DESC"] = "DESC";
144
+ return SortOrder2;
145
+ })(SortOrder || {});
146
+ var ArrayFieldDelimiter = /* @__PURE__ */ ((ArrayFieldDelimiter2) => {
147
+ ArrayFieldDelimiter2["SEMICOLON"] = "SEMICOLON";
148
+ ArrayFieldDelimiter2["SEMICOLON_AND_SPACE"] = "SEMICOLON_AND_SPACE";
149
+ return ArrayFieldDelimiter2;
150
+ })(ArrayFieldDelimiter || {});
151
+ var QueryFieldNumber = /* @__PURE__ */ ((QueryFieldNumber2) => {
152
+ QueryFieldNumber2["DEFAULT"] = "DEFAULT";
153
+ QueryFieldNumber2["FIELD_2"] = "FIELD_2";
154
+ QueryFieldNumber2["FIELD_3"] = "FIELD_3";
155
+ QueryFieldNumber2["FIELD_4"] = "FIELD_4";
156
+ QueryFieldNumber2["FIELD_5"] = "FIELD_5";
157
+ QueryFieldNumber2["FIELD_6"] = "FIELD_6";
158
+ QueryFieldNumber2["FIELD_7"] = "FIELD_7";
159
+ QueryFieldNumber2["FIELD_8"] = "FIELD_8";
160
+ QueryFieldNumber2["FIELD_9"] = "FIELD_9";
161
+ return QueryFieldNumber2;
162
+ })(QueryFieldNumber || {});
163
+ var RuleType = /* @__PURE__ */ ((RuleType2) => {
164
+ RuleType2["VALIDATION"] = "VALIDATION";
165
+ RuleType2["OTHER"] = "OTHER";
166
+ RuleType2["MAX"] = "MAX";
167
+ RuleType2["MIN"] = "MIN";
168
+ RuleType2["MAX_LENGTH"] = "MAX_LENGTH";
169
+ RuleType2["MIN_LENGTH"] = "MIN_LENGTH";
170
+ RuleType2["MAX_SIZE"] = "MAX_SIZE";
171
+ RuleType2["MIN_SIZE"] = "MIN_SIZE";
172
+ RuleType2["FORMAT"] = "FORMAT";
173
+ RuleType2["DECIMAL_LTE"] = "DECIMAL_LTE";
174
+ RuleType2["DECIMAL_GTE"] = "DECIMAL_GTE";
175
+ RuleType2["DECIMAL_LT"] = "DECIMAL_LT";
176
+ RuleType2["DECIMAL_GT"] = "DECIMAL_GT";
177
+ RuleType2["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
178
+ RuleType2["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
179
+ RuleType2["REQUIRED_FIELD"] = "REQUIRED_FIELD";
180
+ RuleType2["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
181
+ RuleType2["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
182
+ RuleType2["EXACT_LENGTH"] = "EXACT_LENGTH";
183
+ RuleType2["EXACT_SIZE"] = "EXACT_SIZE";
184
+ RuleType2["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
185
+ return RuleType2;
186
+ })(RuleType || {});
187
+ var Status = /* @__PURE__ */ ((Status2) => {
188
+ Status2["UNKNOWN"] = "UNKNOWN";
189
+ Status2["INITIALIZED"] = "INITIALIZED";
190
+ Status2["PROCESSING"] = "PROCESSING";
191
+ Status2["FINISHED"] = "FINISHED";
192
+ Status2["FAILED"] = "FAILED";
193
+ return Status2;
194
+ })(Status || {});
195
+ var ProductType = /* @__PURE__ */ ((ProductType2) => {
196
+ ProductType2["unspecified_product_type"] = "unspecified_product_type";
197
+ ProductType2["physical"] = "physical";
198
+ ProductType2["digital"] = "digital";
199
+ return ProductType2;
200
+ })(ProductType || {});
201
+ var InventoryStatus = /* @__PURE__ */ ((InventoryStatus2) => {
202
+ InventoryStatus2["IN_STOCK"] = "IN_STOCK";
203
+ InventoryStatus2["OUT_OF_STOCK"] = "OUT_OF_STOCK";
204
+ InventoryStatus2["PARTIALLY_OUT_OF_STOCK"] = "PARTIALLY_OUT_OF_STOCK";
205
+ return InventoryStatus2;
206
+ })(InventoryStatus || {});
207
+ var MeasurementUnit = /* @__PURE__ */ ((MeasurementUnit2) => {
208
+ MeasurementUnit2["UNSPECIFIED"] = "UNSPECIFIED";
209
+ MeasurementUnit2["ML"] = "ML";
210
+ MeasurementUnit2["CL"] = "CL";
211
+ MeasurementUnit2["L"] = "L";
212
+ MeasurementUnit2["CBM"] = "CBM";
213
+ MeasurementUnit2["MG"] = "MG";
214
+ MeasurementUnit2["G"] = "G";
215
+ MeasurementUnit2["KG"] = "KG";
216
+ MeasurementUnit2["MM"] = "MM";
217
+ MeasurementUnit2["CM"] = "CM";
218
+ MeasurementUnit2["M"] = "M";
219
+ MeasurementUnit2["SQM"] = "SQM";
220
+ MeasurementUnit2["OZ"] = "OZ";
221
+ MeasurementUnit2["LB"] = "LB";
222
+ MeasurementUnit2["FLOZ"] = "FLOZ";
223
+ MeasurementUnit2["PT"] = "PT";
224
+ MeasurementUnit2["QT"] = "QT";
225
+ MeasurementUnit2["GAL"] = "GAL";
226
+ MeasurementUnit2["IN"] = "IN";
227
+ MeasurementUnit2["FT"] = "FT";
228
+ MeasurementUnit2["YD"] = "YD";
229
+ MeasurementUnit2["SQFT"] = "SQFT";
230
+ return MeasurementUnit2;
231
+ })(MeasurementUnit || {});
232
+ var MediaItemType = /* @__PURE__ */ ((MediaItemType2) => {
233
+ MediaItemType2["unspecified_media_item_type"] = "unspecified_media_item_type";
234
+ MediaItemType2["image"] = "image";
235
+ MediaItemType2["video"] = "video";
236
+ MediaItemType2["audio"] = "audio";
237
+ MediaItemType2["document"] = "document";
238
+ MediaItemType2["zip"] = "zip";
239
+ return MediaItemType2;
240
+ })(MediaItemType || {});
241
+ var OptionType = /* @__PURE__ */ ((OptionType2) => {
242
+ OptionType2["unspecified_option_type"] = "unspecified_option_type";
243
+ OptionType2["drop_down"] = "drop_down";
244
+ OptionType2["color"] = "color";
245
+ return OptionType2;
246
+ })(OptionType || {});
247
+ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
248
+ DiscountType2["UNDEFINED"] = "UNDEFINED";
249
+ DiscountType2["NONE"] = "NONE";
250
+ DiscountType2["AMOUNT"] = "AMOUNT";
251
+ DiscountType2["PERCENT"] = "PERCENT";
252
+ return DiscountType2;
253
+ })(DiscountType || {});
254
+ var FileType = /* @__PURE__ */ ((FileType2) => {
255
+ FileType2["UNSPECIFIED"] = "UNSPECIFIED";
256
+ FileType2["SECURE_PICTURE"] = "SECURE_PICTURE";
257
+ FileType2["SECURE_VIDEO"] = "SECURE_VIDEO";
258
+ FileType2["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
259
+ FileType2["SECURE_MUSIC"] = "SECURE_MUSIC";
260
+ FileType2["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
261
+ return FileType2;
262
+ })(FileType || {});
263
+ async function createExportAsyncJob2(query, options) {
264
+ const { httpClient, sideEffects } = arguments[2];
265
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
266
+ query,
267
+ fields: options?.fields,
268
+ arrayFieldDelimiter: options?.arrayFieldDelimiter,
269
+ methodMetadata: options?.methodMetadata,
270
+ methodSpec: options?.methodSpec,
271
+ saveAs: options?.saveAs,
272
+ testParams: options?.testParams
273
+ });
274
+ const reqOpts = createExportAsyncJob(
275
+ payload
276
+ );
277
+ sideEffects?.onSiteCall?.();
278
+ try {
279
+ const result = await httpClient.request(reqOpts);
280
+ sideEffects?.onSuccess?.(result);
281
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
282
+ } catch (err) {
283
+ const transformedError = (0, import_transform_error.transformError)(
284
+ err,
285
+ {
286
+ spreadPathsToArguments: {},
287
+ explicitPathsToArguments: {
288
+ query: "$[0]",
289
+ fields: "$[1].fields",
290
+ arrayFieldDelimiter: "$[1].arrayFieldDelimiter",
291
+ methodMetadata: "$[1].methodMetadata",
292
+ methodSpec: "$[1].methodSpec",
293
+ saveAs: "$[1].saveAs",
294
+ testParams: "$[1].testParams"
295
+ },
296
+ singleArgumentUnchanged: false
297
+ },
298
+ ["query", "options"]
299
+ );
300
+ sideEffects?.onError?.(err);
301
+ throw transformedError;
302
+ }
303
+ }
304
+ async function getExportAsyncJob2(jobId) {
305
+ const { httpClient, sideEffects } = arguments[1];
306
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ jobId });
307
+ const reqOpts = getExportAsyncJob(
308
+ payload
309
+ );
310
+ sideEffects?.onSiteCall?.();
311
+ try {
312
+ const result = await httpClient.request(reqOpts);
313
+ sideEffects?.onSuccess?.(result);
314
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.job;
315
+ } catch (err) {
316
+ const transformedError = (0, import_transform_error.transformError)(
317
+ err,
318
+ {
319
+ spreadPathsToArguments: {},
320
+ explicitPathsToArguments: { jobId: "$[0]" },
321
+ singleArgumentUnchanged: false
322
+ },
323
+ ["jobId"]
324
+ );
325
+ sideEffects?.onError?.(err);
326
+ throw transformedError;
327
+ }
328
+ }
329
+ // Annotate the CommonJS export names for ESM import in node:
330
+ 0 && (module.exports = {
331
+ ArrayFieldDelimiter,
332
+ DiscountType,
333
+ FileType,
334
+ InventoryStatus,
335
+ MeasurementUnit,
336
+ MediaItemType,
337
+ OptionType,
338
+ ProductType,
339
+ QueryFieldNumber,
340
+ RuleType,
341
+ SortOrder,
342
+ Status,
343
+ createExportAsyncJob,
344
+ getExportAsyncJob
345
+ });
18
346
  //# sourceMappingURL=index.typings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iHAA+F"}
1
+ {"version":3,"sources":["../../../index.typings.ts","../../../src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.ts","../../../src/fedinfra-exportservice-v1-export-async-job-export-async-job.http.ts"],"sourcesContent":["export * from './src/fedinfra-exportservice-v1-export-async-job-export-async-job.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixFedinfraExportserviceV1ExportAsyncJob from './fedinfra-exportservice-v1-export-async-job-export-async-job.http.js';\n\nexport interface ExportAsyncJob {\n /**\n * @format GUID\n * @readonly\n */\n _id?: string;\n data?: ExportAsyncJobData;\n status?: StatusWithLiterals;\n /** @readonly */\n createDate?: Date | null;\n /** @readonly */\n updateDate?: Date | null;\n}\n\nexport interface ExportAsyncJobData {\n /** original request data for the export */\n query?: ExportQueryV2;\n /** translated CSV headers */\n fields?: FieldDescriptor[];\n arrayFieldDelimiter?: ArrayFieldDelimiterWithLiterals;\n /** The target method to query data from */\n methodMetadata?: MethodMetadata;\n /** Custom spec for the target method's request/response */\n methodSpec?: MethodSpec;\n userId?: string;\n subDir?: string | null;\n format?: string;\n uploadId?: string;\n /** @maxLength 255 */\n saveAs?: string | null;\n /** the progress of fetching all data update during the process multiple times */\n pagingMetadata?: PagingMetadataV2;\n iterationsCount?: number;\n processedItemsCount?: number;\n completionStep?: string | null;\n /** how many times the export was reset */\n resetCount?: number;\n /** at final step update the signed_url to download the result from */\n signedUrl?: string;\n /** when failed during the process update the error details */\n error?: Details;\n testParams?: Record<string, any> | null;\n}\n\nexport interface ExportQueryV2 extends ExportQueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: ExportCursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface ExportQueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: ExportCursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface ExportCursorPaging {\n /** @max 10000 */\n limit?: number | null;\n cursor?: string | null;\n}\n\nexport interface FieldDescriptor {\n /** the path to the field out of the query response items */\n _id?: string;\n /** how to present the filed in the CSV headers (translated) */\n header?: string;\n}\n\nexport enum ArrayFieldDelimiter {\n SEMICOLON = 'SEMICOLON',\n SEMICOLON_AND_SPACE = 'SEMICOLON_AND_SPACE',\n}\n\n/** @enumType */\nexport type ArrayFieldDelimiterWithLiterals =\n | ArrayFieldDelimiter\n | 'SEMICOLON'\n | 'SEMICOLON_AND_SPACE';\n\nexport interface MethodMetadata {\n artifact?: string;\n service?: string;\n method?: string;\n}\n\nexport interface MethodSpec {\n requestQueryFieldNumber?: QueryFieldNumberWithLiterals;\n responseRepeatedFieldName?: string | null;\n responsePagingMetadataFieldName?: string | null;\n}\n\nexport enum QueryFieldNumber {\n /** message QuerySomethingRequest { .wix.common.QueryV2 query = 1; } */\n DEFAULT = 'DEFAULT',\n FIELD_2 = 'FIELD_2',\n FIELD_3 = 'FIELD_3',\n FIELD_4 = 'FIELD_4',\n FIELD_5 = 'FIELD_5',\n FIELD_6 = 'FIELD_6',\n FIELD_7 = 'FIELD_7',\n /** message QuerySomethingRequest { .wix.common.QueryV2 query = 8; } */\n FIELD_8 = 'FIELD_8',\n FIELD_9 = 'FIELD_9',\n}\n\n/** @enumType */\nexport type QueryFieldNumberWithLiterals =\n | QueryFieldNumber\n | 'DEFAULT'\n | 'FIELD_2'\n | 'FIELD_3'\n | 'FIELD_4'\n | 'FIELD_5'\n | 'FIELD_6'\n | 'FIELD_7'\n | 'FIELD_8'\n | 'FIELD_9';\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface Details extends DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n /**\n * deprecated in API's - to enable migration from rendering arbitrary tracing to rest response\n * @deprecated\n */\n tracing?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\n/**\n * example result:\n * {\n * \"fieldViolations\": [\n * {\n * \"field\": \"fieldA\",\n * \"description\": \"invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]\",\n * \"violatedRule\": \"OTHER\",\n * \"ruleName\": \"INVALID_NOTE\",\n * \"data\": {\n * \"value\": \"FI\"\n * }\n * },\n * {\n * \"field\": \"fieldB\",\n * \"description\": \"field value out of range. supported range: [0-20]\",\n * \"violatedRule\": \"MAX\",\n * \"data\": {\n * \"threshold\": 20\n * }\n * },\n * {\n * \"field\": \"fieldC\",\n * \"description\": \"invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]\",\n * \"violatedRule\": \"FORMAT\",\n * \"data\": {\n * \"type\": \"PHONE\"\n * }\n * }\n * ]\n * }\n */\nexport interface ValidationError {\n fieldViolations?: FieldViolation[];\n}\n\nexport enum RuleType {\n VALIDATION = 'VALIDATION',\n OTHER = 'OTHER',\n MAX = 'MAX',\n MIN = 'MIN',\n MAX_LENGTH = 'MAX_LENGTH',\n MIN_LENGTH = 'MIN_LENGTH',\n MAX_SIZE = 'MAX_SIZE',\n MIN_SIZE = 'MIN_SIZE',\n FORMAT = 'FORMAT',\n DECIMAL_LTE = 'DECIMAL_LTE',\n DECIMAL_GTE = 'DECIMAL_GTE',\n DECIMAL_LT = 'DECIMAL_LT',\n DECIMAL_GT = 'DECIMAL_GT',\n DECIMAL_MAX_SCALE = 'DECIMAL_MAX_SCALE',\n INVALID_ENUM_VALUE = 'INVALID_ENUM_VALUE',\n REQUIRED_FIELD = 'REQUIRED_FIELD',\n FIELD_NOT_ALLOWED = 'FIELD_NOT_ALLOWED',\n ONE_OF_ALIGNMENT = 'ONE_OF_ALIGNMENT',\n EXACT_LENGTH = 'EXACT_LENGTH',\n EXACT_SIZE = 'EXACT_SIZE',\n REQUIRED_ONE_OF_FIELD = 'REQUIRED_ONE_OF_FIELD',\n}\n\n/** @enumType */\nexport type RuleTypeWithLiterals =\n | RuleType\n | 'VALIDATION'\n | 'OTHER'\n | 'MAX'\n | 'MIN'\n | 'MAX_LENGTH'\n | 'MIN_LENGTH'\n | 'MAX_SIZE'\n | 'MIN_SIZE'\n | 'FORMAT'\n | 'DECIMAL_LTE'\n | 'DECIMAL_GTE'\n | 'DECIMAL_LT'\n | 'DECIMAL_GT'\n | 'DECIMAL_MAX_SCALE'\n | 'INVALID_ENUM_VALUE'\n | 'REQUIRED_FIELD'\n | 'FIELD_NOT_ALLOWED'\n | 'ONE_OF_ALIGNMENT'\n | 'EXACT_LENGTH'\n | 'EXACT_SIZE'\n | 'REQUIRED_ONE_OF_FIELD';\n\nexport interface FieldViolation {\n field?: string;\n description?: string;\n violatedRule?: RuleTypeWithLiterals;\n /** applicable when violated_rule=OTHER */\n ruleName?: string | null;\n data?: Record<string, any> | null;\n}\n\nexport interface SystemError {\n /** Error code. */\n errorCode?: string | null;\n}\n\nexport enum Status {\n UNKNOWN = 'UNKNOWN',\n /** Job is created, but hasn't started yet. */\n INITIALIZED = 'INITIALIZED',\n /** Job has started and is in progress. */\n PROCESSING = 'PROCESSING',\n /** Job is finished. */\n FINISHED = 'FINISHED',\n /** Job has failed. */\n FAILED = 'FAILED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN'\n | 'INITIALIZED'\n | 'PROCESSING'\n | 'FINISHED'\n | 'FAILED';\n\nexport interface CreateExportAsyncJobRequest {\n /** WQL expression */\n query: ExportQueryV2;\n /** translated CSV headers */\n fields: FieldDescriptor[];\n arrayFieldDelimiter?: ArrayFieldDelimiterWithLiterals;\n /** The target method to query data from */\n methodMetadata: MethodMetadata;\n /** The target method to query data from */\n methodSpec?: MethodSpec;\n /** @maxLength 255 */\n saveAs?: string | null;\n /** Test params */\n testParams?: Record<string, any> | null;\n}\n\nexport interface CreateExportAsyncJobResponse {\n /** The retrieved Exports */\n job?: ExportAsyncJob;\n}\n\nexport interface GetExportAsyncJobRequest {\n /**\n * Id of the Export to retrieve\n * @format GUID\n */\n jobId: string;\n}\n\nexport interface GetExportAsyncJobResponse {\n /** The retrieved ExportAsyncJob */\n job?: ExportAsyncJob;\n}\n\nexport interface CancelExportAsyncJobRequest {\n /**\n * Id of the Export to retrieve\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface CancelExportAsyncJobResponse {\n /** The retrieved ExportAsyncJob */\n job?: ExportAsyncJob;\n}\n\nexport interface GenerateExportAsyncJobDownloadUrlRequest {\n /**\n * Id of the Export to retrieve\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface GenerateExportAsyncJobDownloadUrlResponse {\n /** The retrieved ExportAsyncJob */\n job?: ExportAsyncJob;\n}\n\nexport interface QueryRequestLoose {\n /** WQL expression */\n query?: ExportQueryV2;\n}\n\nexport interface QueryVariantsExportSpiResponse {\n items?: ProductOrVariant[];\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface ProductOrVariant {\n kind?: string;\n product?: Product;\n variant?: StoreVariant;\n}\n\nexport interface Product {\n /**\n * Product ID (generated automatically by the catalog).\n * @readonly\n */\n _id?: string;\n /**\n * Product name.\n *\n * Min: 1 character\n * Max: 80 characters\n * @minLength 1\n * @maxLength 80\n */\n name?: string | null;\n /**\n * A friendly URL name (generated automatically by the catalog when a product is created), can be updated.\n * @maxLength 100\n */\n slug?: string;\n /** Whether the product is visible to site visitors. */\n visible?: boolean | null;\n /** Currently, only creating physical products ( `\"productType\": \"physical\"` ) is supported via the API. */\n productType?: ProductTypeWithLiterals;\n /**\n * Product description. Accepts [rich text](https://dev.wix.com/api/rest/wix-stores/rich-text).\n * @maxLength 8000\n */\n description?: string | null;\n /**\n * Stock keeping unit. If [variant management](https://support.wix.com/en/article/wix-stores-adding-and-customizing-product-options#setting-different-prices-for-variants) is enabled, SKUs will be set per variant, and this field will be empty.\n * @maxLength 40\n */\n sku?: string | null;\n /**\n * Product weight. If [variant management](https://support.wix.com/en/article/wix-stores-adding-and-customizing-product-options#setting-different-prices-for-variants) is enabled, weight will be set per variant, and this field will be empty.\n * @max 999999999.99\n */\n weight?: number | null;\n /**\n * Product weight range. The minimum and maximum weights of all the variants.\n * @readonly\n */\n weightRange?: NumericPropertyRange;\n /**\n * Product inventory status (in future this will be writable via Inventory API).\n * @readonly\n */\n stock?: Stock;\n /**\n * Deprecated (use `priceData` instead).\n * @readonly\n * @deprecated\n */\n price?: PriceData;\n /** Price data. */\n priceData?: PriceData;\n /**\n * Price data, converted to the currency specified in request header.\n * @readonly\n */\n convertedPriceData?: PriceData;\n /**\n * Product price range. The minimum and maximum prices of all the variants.\n * @readonly\n */\n priceRange?: NumericPropertyRange;\n /** Cost and profit data. */\n costAndProfitData?: CostAndProfitData;\n /**\n * Product cost range. The minimum and maximum costs of all the variants.\n * @readonly\n */\n costRange?: NumericPropertyRange;\n /** Price per unit data. */\n pricePerUnitData?: PricePerUnitData;\n /** Additional text that the store owner can assign to the product (e.g. shipping details, refund policy, etc.). */\n additionalInfoSections?: AdditionalInfoSection[];\n /**\n * Deprecated (use `ribbon` instead).\n * @readonly\n * @deprecated\n */\n ribbons?: Ribbon[];\n /**\n * Media items (images, videos etc) associated with this product (writable via [Add Product Media](https://dev.wix.com/api/rest/wix-stores/catalog/products/add-product-media) endpoint).\n * @readonly\n */\n media?: Media;\n /**\n * Text box for the customer to add a message to their order (e.g., customization request). Currently writable only from the UI.\n * @readonly\n */\n customTextFields?: CustomTextField[];\n /** Whether variants are being managed for this product - enables unique SKU, price and weight per variant. Also affects inventory data. */\n manageVariants?: boolean | null;\n /**\n * Options for this product.\n * @maxSize 6\n */\n productOptions?: ProductOption[];\n /**\n * Product page URL for this product (generated automatically by the server).\n * @readonly\n */\n productPageUrl?: PageUrl;\n /**\n * Product’s unique numeric ID (assigned in ascending order).\n * Primarily used for sorting and filtering when crawling all products.\n * @readonly\n */\n numericId?: string;\n /**\n * Inventory item ID - ID referencing the inventory system.\n * @readonly\n */\n inventoryItemId?: string;\n /** Discount deducted from the product's original price. */\n discount?: Discount;\n /**\n * A list of all collection IDs that this product is included in (writable via the Catalog > Collection APIs).\n * @readonly\n */\n collectionIds?: string[];\n /**\n * Product variants, will be provided if the request was sent with the `includeVariants: true`.\n *\n * Max: 1,000 variants\n * @readonly\n * @maxSize 1000\n */\n variants?: Variant[];\n /**\n * Date and time the product was last updated.\n * @readonly\n */\n lastUpdated?: Date | null;\n /**\n * Date and time the product was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /** Custom SEO data for the product. */\n seoData?: SeoSchema;\n /**\n * Product ribbon. Used to highlight relevant information about a product. For example, \"Sale\", \"New Arrival\", \"Sold Out\".\n * @maxLength 30\n */\n ribbon?: string | null;\n /**\n * Product brand. Including a brand name can help improve site and product [visibility on search engines](https://support.wix.com/en/article/adding-brand-names-to-boost-product-page-seo-in-wix-stores).\n * @minLength 1\n * @maxLength 50\n */\n brand?: string | null;\n}\n\nexport enum ProductType {\n unspecified_product_type = 'unspecified_product_type',\n physical = 'physical',\n digital = 'digital',\n}\n\n/** @enumType */\nexport type ProductTypeWithLiterals =\n | ProductType\n | 'unspecified_product_type'\n | 'physical'\n | 'digital';\n\nexport interface NumericPropertyRange {\n /** Minimum value. */\n minValue?: number;\n /** Maximum value. */\n maxValue?: number;\n}\n\nexport interface Stock {\n /** Whether inventory is being tracked */\n trackInventory?: boolean;\n /**\n * Quantity currently left in inventory\n * @max 99999\n */\n quantity?: number | null;\n /**\n * Whether the product is currently in stock (relevant only when tracking manually)\n * Deprecated (use `inventoryStatus` instead)\n * @deprecated\n */\n inStock?: boolean;\n /**\n * The current status of the inventory\n * + `IN_STOCK` - In stock\n * + `OUT_OF_STOCK` - Not in stock\n * + `PARTIALLY_OUT_OF_STOCK` - Some of the variants are not in stock\n */\n inventoryStatus?: InventoryStatusWithLiterals;\n}\n\nexport enum InventoryStatus {\n /** In stock */\n IN_STOCK = 'IN_STOCK',\n /** Not in stock */\n OUT_OF_STOCK = 'OUT_OF_STOCK',\n /** Some of the variants are not in stock */\n PARTIALLY_OUT_OF_STOCK = 'PARTIALLY_OUT_OF_STOCK',\n}\n\n/** @enumType */\nexport type InventoryStatusWithLiterals =\n | InventoryStatus\n | 'IN_STOCK'\n | 'OUT_OF_STOCK'\n | 'PARTIALLY_OUT_OF_STOCK';\n\nexport interface PriceData {\n /**\n * Product price currency\n * @readonly\n */\n currency?: string;\n /**\n * Product price\n * @max 999999999.99\n */\n price?: number | null;\n /**\n * Discounted product price (if no discounted price is set, the product price is returned)\n * @readonly\n */\n discountedPrice?: number;\n /**\n * The product price and discounted price, formatted with the currency\n * @readonly\n */\n formatted?: FormattedPrice;\n /**\n * Price per unit\n * @readonly\n */\n pricePerUnit?: number | null;\n}\n\nexport interface FormattedPrice {\n /** Product price formatted with the currency */\n price?: string;\n /** Discounted product price formatted with the currency (if no discounted price is set, the product formatted price is returned) */\n discountedPrice?: string;\n /**\n * Price per unit\n * @readonly\n */\n pricePerUnit?: string | null;\n}\n\nexport interface CostAndProfitData {\n /**\n * Item cost.\n * @max 999999999.99\n */\n itemCost?: number | null;\n /**\n * Item cost formatted with currency symbol.\n * @readonly\n */\n formattedItemCost?: string;\n /**\n * Profit. Calculated by reducing `cost` from `discounted_price`.\n * @readonly\n * @max 999999999.99\n */\n profit?: number;\n /**\n * Profit formatted with currency symbol.\n * @readonly\n */\n formattedProfit?: string;\n /**\n * Profit Margin. Calculated by dividing `profit` by `discounted_price`.\n * The result is rounded to 4 decimal places.\n * @readonly\n * @max 1\n */\n profitMargin?: number;\n}\n\nexport interface PricePerUnitData {\n /**\n * Total quantity\n * @min 0.01\n * @max 999999999.99\n */\n totalQuantity?: number;\n /** Total measurement unit */\n totalMeasurementUnit?: MeasurementUnitWithLiterals;\n /**\n * Base quantity\n * @min 0.01\n * @max 999999999.99\n */\n baseQuantity?: number;\n /** Base measurement unit */\n baseMeasurementUnit?: MeasurementUnitWithLiterals;\n}\n\nexport enum MeasurementUnit {\n UNSPECIFIED = 'UNSPECIFIED',\n ML = 'ML',\n CL = 'CL',\n L = 'L',\n CBM = 'CBM',\n MG = 'MG',\n G = 'G',\n KG = 'KG',\n MM = 'MM',\n CM = 'CM',\n M = 'M',\n SQM = 'SQM',\n OZ = 'OZ',\n LB = 'LB',\n FLOZ = 'FLOZ',\n PT = 'PT',\n QT = 'QT',\n GAL = 'GAL',\n IN = 'IN',\n FT = 'FT',\n YD = 'YD',\n SQFT = 'SQFT',\n}\n\n/** @enumType */\nexport type MeasurementUnitWithLiterals =\n | MeasurementUnit\n | 'UNSPECIFIED'\n | 'ML'\n | 'CL'\n | 'L'\n | 'CBM'\n | 'MG'\n | 'G'\n | 'KG'\n | 'MM'\n | 'CM'\n | 'M'\n | 'SQM'\n | 'OZ'\n | 'LB'\n | 'FLOZ'\n | 'PT'\n | 'QT'\n | 'GAL'\n | 'IN'\n | 'FT'\n | 'YD'\n | 'SQFT';\n\nexport interface AdditionalInfoSection {\n /**\n * Product info section title\n * @maxLength 50\n */\n title?: string;\n /**\n * Product info section description\n * @maxLength 16000\n */\n description?: string;\n}\n\nexport interface Ribbon {\n /**\n * Ribbon text\n * @maxLength 30\n */\n text?: string;\n}\n\nexport interface Media {\n /** Primary media (image, video etc) associated with this product. */\n mainMedia?: MediaItem;\n /** Media (images, videos etc) associated with this product. */\n items?: MediaItem[];\n}\n\nexport interface MediaItem extends MediaItemItemOneOf {\n /** Image data (URL, size). */\n image?: MediaItemUrlAndSize;\n /** Video data (URL, size). */\n video?: MediaItemVideo;\n /** Media item thumbnail details. */\n thumbnail?: MediaItemUrlAndSize;\n /** Media item type (image, video, etc.). */\n mediaType?: MediaItemTypeWithLiterals;\n /** Media item title. */\n title?: string;\n /** Media ID (for example, `\"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg\"`). */\n _id?: string;\n}\n\n/** @oneof */\nexport interface MediaItemItemOneOf {\n /** Image data (URL, size). */\n image?: MediaItemUrlAndSize;\n /** Video data (URL, size). */\n video?: MediaItemVideo;\n}\n\nexport interface MediaItemUrlAndSize {\n /**\n * Media item URL.\n * @format WEB_URL\n */\n url?: string;\n /** Media item width. */\n width?: number;\n /** Media item height. */\n height?: number;\n /** Media format (mp4, png, etc.). */\n format?: string | null;\n /** Alt text. This text will be shown in case the image is not available. */\n altText?: string | null;\n}\n\nexport enum MediaItemType {\n unspecified_media_item_type = 'unspecified_media_item_type',\n /** Image media type. */\n image = 'image',\n /** Video media type. */\n video = 'video',\n /** Audio media type. */\n audio = 'audio',\n /** Document media type. */\n document = 'document',\n /** Zip media type. */\n zip = 'zip',\n}\n\n/** @enumType */\nexport type MediaItemTypeWithLiterals =\n | MediaItemType\n | 'unspecified_media_item_type'\n | 'image'\n | 'video'\n | 'audio'\n | 'document'\n | 'zip';\n\nexport interface MediaItemVideo {\n /** Data (URL, size) about each resolution for which this video is available. */\n files?: MediaItemUrlAndSize[];\n /** ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `\"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg\"`. */\n stillFrameMediaId?: string;\n}\n\nexport interface CustomTextField {\n /**\n * Text box title\n * @maxLength 100\n */\n title?: string;\n /**\n * Text box input max length\n * @max 500\n */\n maxLength?: number;\n /** Whether this text box is mandatory */\n mandatory?: boolean;\n}\n\nexport interface ProductOption {\n /**\n * Option type.\n * @readonly\n */\n optionType?: OptionTypeWithLiterals;\n /**\n * Option name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /**\n * Choices available for this option.\n * @minSize 1\n * @maxSize 100\n */\n choices?: Choice[];\n}\n\nexport enum OptionType {\n /** Unspecified option type. */\n unspecified_option_type = 'unspecified_option_type',\n /** Drop down. */\n drop_down = 'drop_down',\n /** Color. */\n color = 'color',\n}\n\n/** @enumType */\nexport type OptionTypeWithLiterals =\n | OptionType\n | 'unspecified_option_type'\n | 'drop_down'\n | 'color';\n\nexport interface Choice {\n /**\n * Choice value.\n * @minLength 1\n * @maxLength 50\n */\n value?: string;\n /**\n * Choice description.\n * @minLength 1\n * @maxLength 50\n */\n description?: string;\n /**\n * Media items (images, videos) associated with this choice\n * @readonly\n */\n media?: Media;\n /**\n * Based on the customer’s choices, which (if any) variants that include the selected choices are in stock\n * @readonly\n */\n inStock?: boolean;\n /**\n * Based on the customer’s choices, which (if any) variants that include the selected choices are visible\n * @readonly\n */\n visible?: boolean;\n}\n\nexport interface PageUrl {\n /** Base URL. For premium sites, this is the domain. For free sites, this is the site URL (e.g mysite.wixsite.com/mysite). */\n base?: string;\n /** Path to the product page - e.g /product-page/a-product. */\n path?: string;\n}\n\nexport interface Discount {\n /**\n * Discount type:\n * + `\"AMOUNT\"`\n * + `\"PERCENT\"`\n */\n type?: DiscountTypeWithLiterals;\n /** Discount value */\n value?: number;\n}\n\nexport enum DiscountType {\n UNDEFINED = 'UNDEFINED',\n /** No discount */\n NONE = 'NONE',\n /** Discount by a fixed amount */\n AMOUNT = 'AMOUNT',\n /** Discount by a percentage */\n PERCENT = 'PERCENT',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n | DiscountType\n | 'UNDEFINED'\n | 'NONE'\n | 'AMOUNT'\n | 'PERCENT';\n\nexport interface Variant {\n /**\n * Requested Variant ID\n * @format GUID\n */\n _id?: string;\n /** Specific choices within a selection, as option-choice key-value pairs */\n choices?: Record<string, string>;\n variant?: VariantDataWithNoStock;\n /**\n * Variant inventory status.\n * @readonly\n */\n stock?: VariantStock;\n}\n\nexport interface VariantDataWithNoStock {\n /** Variant price. */\n priceData?: PriceData;\n /**\n * Variant price data, converted to currency requested in header.\n * @readonly\n */\n convertedPriceData?: PriceData;\n /** Cost and profit data. */\n costAndProfitData?: CostAndProfitData;\n /** Variant weight. */\n weight?: number;\n /** Variant SKU (stock keeping unit). */\n sku?: string;\n /** Whether the variant is visible to customers. */\n visible?: boolean;\n}\n\nexport interface VariantStock {\n /** Whether inventory is being tracked. */\n trackQuantity?: boolean;\n /**\n * Quantity currently left in inventory.\n * @max 99999\n */\n quantity?: number | null;\n /** Whether the product is currently in stock (relevant only when tracking manually). */\n inStock?: boolean;\n}\n\n/**\n * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.\n * The search engines use this information for ranking purposes, or to display snippets in the search results.\n * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.\n */\nexport interface SeoSchema {\n /** SEO tag information. */\n tags?: Tag[];\n /** SEO general settings. */\n settings?: Settings;\n}\n\nexport interface Keyword {\n /** Keyword value. */\n term?: string;\n /** Whether the keyword is the main focus keyword. */\n isMain?: boolean;\n /**\n * The source that added the keyword terms to the SEO settings.\n * @maxLength 1000\n */\n origin?: string | null;\n}\n\nexport interface Tag {\n /**\n * SEO tag type.\n *\n *\n * Supported values: `title`, `meta`, `script`, `link`.\n */\n type?: string;\n /**\n * A `{\"key\": \"value\"}` pair object where each SEO tag property (`\"name\"`, `\"content\"`, `\"rel\"`, `\"href\"`) contains a value.\n * For example: `{\"name\": \"description\", \"content\": \"the description itself\"}`.\n */\n props?: Record<string, any> | null;\n /** SEO tag metadata. For example, `{\"height\": 300, \"width\": 240}`. */\n meta?: Record<string, any> | null;\n /** SEO tag inner content. For example, `<title> inner content </title>`. */\n children?: string;\n /** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */\n custom?: boolean;\n /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */\n disabled?: boolean;\n}\n\nexport interface Settings {\n /**\n * Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n *\n *\n * Default: `false` (automatical redirect is enabled).\n */\n preventAutoRedirect?: boolean;\n /**\n * User-selected keyword terms for a specific page.\n * @maxSize 5\n */\n keywords?: Keyword[];\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileTypeWithLiterals;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n}\n\n/** @enumType */\nexport type FileTypeWithLiterals =\n | FileType\n | 'UNSPECIFIED'\n | 'SECURE_PICTURE'\n | 'SECURE_VIDEO'\n | 'SECURE_DOCUMENT'\n | 'SECURE_MUSIC'\n | 'SECURE_ARCHIVE';\n\nexport interface StoreVariant {\n /** Store variant ID. Comprised of the `productId` and the `variantId`, separated by a hyphen: {productId}.{variantId}. */\n _id?: string;\n /**\n * Variant ID.\n * @format GUID\n */\n variantId?: string;\n /** Product ID. */\n productId?: string;\n /**\n * Variant name.\n * @minLength 1\n * @maxLength 80\n */\n variantName?: string;\n /**\n * Product name.\n * @minLength 1\n * @maxLength 80\n */\n productName?: string;\n /** Whether the variant is managed or represents a product. */\n managedVariant?: boolean;\n /**\n * Variant SKU (stock keeping unit).\n * @maxLength 40\n */\n sku?: string;\n /** Variant inventory status. */\n stock?: VariantStock;\n /** The selected options of this variant. For example, `{\"Color\": \"Blue\", \"Size\": \"Large\"}`. */\n choices?: Record<string, string>;\n /**\n * Collections that include this variant.\n * @format GUID\n */\n collectionIds?: string[];\n /**\n * Media items (images, videos) associated with this variant.\n * @readonly\n */\n media?: PlatformMedia;\n /** Preorder information. */\n preorderInfo?: PreorderInfo;\n}\n\nexport interface PlatformMedia extends PlatformMediaMediaOneOf {\n image?: string;\n video?: string;\n}\n\n/** @oneof */\nexport interface PlatformMediaMediaOneOf {\n image?: string;\n video?: string;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface VideoResolution {\n /** Video URL. */\n url?: string;\n /** Video height. */\n height?: number;\n /** Video width. */\n width?: number;\n /** Video format for example, mp4, hls. */\n format?: string;\n}\n\nexport interface PreorderInfo {\n /** Whether the item is available for preorder. */\n enabled?: boolean;\n /**\n * A message the buyer will see when the item is out of stock and preorder is enabled.\n * @minLength 1\n * @maxLength 250\n */\n message?: string | null;\n /**\n * Number of products that can be preordered after stock reaches zero.\n * @max 100000\n */\n limit?: number | null;\n}\n\nexport interface QueryProductsExportSpiResponse {\n items?: ProductOrVariantV2[];\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface ProductOrVariantV2 {\n kind?: string;\n product?: Product;\n variant?: Variant;\n}\n\n/** @docsIgnore */\nexport type CreateExportAsyncJobApplicationErrors = {\n code?: 'method_endpoint_not_found';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetExportAsyncJobApplicationErrors =\n | {\n code?: 'job_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'get_async_job_internal';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'method_endpoint_permission_denied';\n description?: string;\n data?: Record<string, any>;\n };\n\n/**\n * Creates a new Export\n * @param query - WQL expression\n * @public\n * @documentationMaturity preview\n * @requiredField options.fields\n * @requiredField options.methodMetadata\n * @requiredField query\n * @permissionId EXPORT_ASYNC_JOB.CREATE\n * @fqn wix.fedinfra.exportservice.v1.ExportService.CreateExportAsyncJob\n */\nexport async function createExportAsyncJob(\n query: ExportQueryV2,\n options?: NonNullablePaths<\n CreateExportAsyncJobOptions,\n `fields` | `methodMetadata`,\n 2\n >\n): Promise<\n NonNullablePaths<\n CreateExportAsyncJobResponse,\n | `job._id`\n | `job.data.query.sort`\n | `job.data.query.sort.${number}.fieldName`\n | `job.data.query.sort.${number}.order`\n | `job.data.query.fields`\n | `job.data.query.fieldsets`\n | `job.data.fields`\n | `job.data.fields.${number}._id`\n | `job.data.fields.${number}.header`\n | `job.data.arrayFieldDelimiter`\n | `job.data.methodMetadata.artifact`\n | `job.data.methodMetadata.service`\n | `job.data.methodMetadata.method`\n | `job.data.methodSpec.requestQueryFieldNumber`\n | `job.data.userId`\n | `job.data.format`\n | `job.data.uploadId`\n | `job.data.iterationsCount`\n | `job.data.processedItemsCount`\n | `job.data.resetCount`\n | `job.data.signedUrl`\n | `job.data.error.applicationError.code`\n | `job.data.error.applicationError.description`\n | `job.data.error.validationError.fieldViolations`\n | `job.data.error.validationError.fieldViolations.${number}.field`\n | `job.data.error.validationError.fieldViolations.${number}.description`\n | `job.data.error.validationError.fieldViolations.${number}.violatedRule`\n | `job.status`,\n 8\n > & {\n __applicationErrorsType?: CreateExportAsyncJobApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n fields: options?.fields,\n arrayFieldDelimiter: options?.arrayFieldDelimiter,\n methodMetadata: options?.methodMetadata,\n methodSpec: options?.methodSpec,\n saveAs: options?.saveAs,\n testParams: options?.testParams,\n });\n\n const reqOpts =\n ambassadorWixFedinfraExportserviceV1ExportAsyncJob.createExportAsyncJob(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n query: '$[0]',\n fields: '$[1].fields',\n arrayFieldDelimiter: '$[1].arrayFieldDelimiter',\n methodMetadata: '$[1].methodMetadata',\n methodSpec: '$[1].methodSpec',\n saveAs: '$[1].saveAs',\n testParams: '$[1].testParams',\n },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateExportAsyncJobOptions {\n /** translated CSV headers */\n fields: FieldDescriptor[];\n arrayFieldDelimiter?: ArrayFieldDelimiterWithLiterals;\n /** The target method to query data from */\n methodMetadata: MethodMetadata;\n /** The target method to query data from */\n methodSpec?: MethodSpec;\n /** @maxLength 255 */\n saveAs?: string | null;\n /** Test params */\n testParams?: Record<string, any> | null;\n}\n\n/**\n * Get a Export by id\n * @param jobId - Id of the Export to retrieve\n * @public\n * @documentationMaturity preview\n * @requiredField jobId\n * @permissionId EXPORT_ASYNC_JOB.CREATE\n * @returns The retrieved ExportAsyncJob\n * @fqn wix.fedinfra.exportservice.v1.ExportService.GetExportAsyncJob\n */\nexport async function getExportAsyncJob(jobId: string): Promise<\n NonNullablePaths<\n ExportAsyncJob,\n | `_id`\n | `data.query.sort`\n | `data.query.sort.${number}.fieldName`\n | `data.query.sort.${number}.order`\n | `data.query.fields`\n | `data.query.fieldsets`\n | `data.fields`\n | `data.fields.${number}._id`\n | `data.fields.${number}.header`\n | `data.arrayFieldDelimiter`\n | `data.methodMetadata.artifact`\n | `data.methodMetadata.service`\n | `data.methodMetadata.method`\n | `data.methodSpec.requestQueryFieldNumber`\n | `data.userId`\n | `data.format`\n | `data.uploadId`\n | `data.iterationsCount`\n | `data.processedItemsCount`\n | `data.resetCount`\n | `data.signedUrl`\n | `data.error.applicationError.code`\n | `data.error.applicationError.description`\n | `data.error.validationError.fieldViolations`\n | `data.error.validationError.fieldViolations.${number}.field`\n | `data.error.validationError.fieldViolations.${number}.description`\n | `data.error.validationError.fieldViolations.${number}.violatedRule`\n | `status`,\n 7\n > & {\n __applicationErrorsType?: GetExportAsyncJobApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ jobId: jobId });\n\n const reqOpts =\n ambassadorWixFedinfraExportserviceV1ExportAsyncJob.getExportAsyncJob(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.job!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { jobId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['jobId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFedinfraExportserviceV1ExportServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/export-service',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/export-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/export-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/export-service',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/export-service',\n destPath: '',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/_api/export-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_export-async-job_export-async-job';\n\n/** Creates a new Export */\nexport function createExportAsyncJob(\n payload: object\n): RequestOptionsFactory<any> {\n function __createExportAsyncJob({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fedinfra.exportservice.v1.export_async_job',\n method: 'POST' as any,\n methodFqn:\n 'wix.fedinfra.exportservice.v1.ExportService.CreateExportAsyncJob',\n packageName: PACKAGE_NAME,\n url: resolveWixFedinfraExportserviceV1ExportServiceUrl({\n protoPath: '/v1/export-async-job',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'job.createDate' }, { path: 'job.updateDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createExportAsyncJob;\n}\n\n/** Get a Export by id */\nexport function getExportAsyncJob(payload: object): RequestOptionsFactory<any> {\n function __getExportAsyncJob({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fedinfra.exportservice.v1.export_async_job',\n method: 'GET' as any,\n methodFqn:\n 'wix.fedinfra.exportservice.v1.ExportService.GetExportAsyncJob',\n packageName: PACKAGE_NAME,\n url: resolveWixFedinfraExportserviceV1ExportServiceUrl({\n protoPath: '/v1/export-async-job/{jobId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'job.createDate' }, { path: 'job.updateDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getExportAsyncJob;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAAA;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,kDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAA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A0BA,eAAsBC,mBAAkB,OAmCtC;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC,EAAE,MAAa,CAAC;AAEtE,QAAM,UAC+C;AAAA,IACjD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI,GAAG;AAAA,EAC/D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAD;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,OAAO,OAAO;AAAA,QAC1C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO;AAAA,IACV;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["createExportAsyncJob","getExportAsyncJob","import_rest_modules","payload","SortOrder","ArrayFieldDelimiter","QueryFieldNumber","RuleType","Status","ProductType","InventoryStatus","MeasurementUnit","MediaItemType","OptionType","DiscountType","FileType","createExportAsyncJob","sdkTransformError","getExportAsyncJob"]}