@wix/auto_sdk_stores_info-sections-v-3 1.0.0
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.d.ts +30 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.js +65 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.d.ts +68 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.js +1101 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.d.ts +28 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js +218 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.d.ts +122 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.js +238 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.d.ts +2083 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.js +318 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.js.map +1 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.d.ts +2640 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js +862 -0
- package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.d.ts +30 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.js +30 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.js.map +1 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.d.ts +68 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.js +1088 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.js.map +1 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.d.ts +28 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js +182 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js.map +1 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.d.ts +122 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.js +193 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.js.map +1 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.d.ts +2083 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.js +315 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.js.map +1 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.d.ts +2640 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js +826 -0
- package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.d.ts +30 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.js +65 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.d.ts +68 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.js +1101 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.d.ts +28 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js +218 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.d.ts +122 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.js +238 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.d.ts +2083 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.js +318 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.js.map +1 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.d.ts +2640 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js +862 -0
- package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.d.ts +30 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.js +30 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.d.ts +68 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.js +1088 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.d.ts +28 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js +182 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.d.ts +122 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.js +193 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.d.ts +2083 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.js +315 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.js.map +1 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.d.ts +2640 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js +826 -0
- package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,862 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.bulkDeleteInfoSections = exports.bulkUpdateInfoSections = exports.bulkCreateInfoSections = exports.queryInfoSections = exports.deleteInfoSection = exports.updateInfoSection = exports.bulkGetOrCreateInfoSections = exports.getOrCreateInfoSection = exports.getInfoSection = exports.createInfoSection = exports.WebhookIdentityType = exports.SortOrder = exports.RequestedFields = exports.NullValue = exports.VerticalAlignment = exports.Direction = exports.InitialExpandedItems = exports.AppType = exports.FontType = exports.DecorationType = exports.BackgroundType = exports.PollLayoutDirection = exports.PollLayoutType = exports.VoteRole = exports.ViewRole = exports.MapType = exports.Source = exports.GIFType = exports.ThumbnailsAlignment = exports.Crop = exports.Orientation = exports.LayoutType = exports.ViewMode = exports.Alignment = exports.Width = exports.LineStyle = exports.TextAlignment = exports.Target = exports.Type = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = void 0;
|
|
27
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
28
|
+
const query_builder_1 = require("@wix/sdk-runtime/query-builder");
|
|
29
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
30
|
+
const ambassadorWixStoresCatalogV3InfoSection = __importStar(require("./stores-catalog-v3-info-section-info-sections-v-3.http.js"));
|
|
31
|
+
var NodeType;
|
|
32
|
+
(function (NodeType) {
|
|
33
|
+
NodeType["PARAGRAPH"] = "PARAGRAPH";
|
|
34
|
+
NodeType["TEXT"] = "TEXT";
|
|
35
|
+
NodeType["HEADING"] = "HEADING";
|
|
36
|
+
NodeType["BULLETED_LIST"] = "BULLETED_LIST";
|
|
37
|
+
NodeType["ORDERED_LIST"] = "ORDERED_LIST";
|
|
38
|
+
NodeType["LIST_ITEM"] = "LIST_ITEM";
|
|
39
|
+
NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
|
|
40
|
+
NodeType["CODE_BLOCK"] = "CODE_BLOCK";
|
|
41
|
+
NodeType["VIDEO"] = "VIDEO";
|
|
42
|
+
NodeType["DIVIDER"] = "DIVIDER";
|
|
43
|
+
NodeType["FILE"] = "FILE";
|
|
44
|
+
NodeType["GALLERY"] = "GALLERY";
|
|
45
|
+
NodeType["GIF"] = "GIF";
|
|
46
|
+
NodeType["HTML"] = "HTML";
|
|
47
|
+
NodeType["IMAGE"] = "IMAGE";
|
|
48
|
+
NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
|
|
49
|
+
/** @deprecated */
|
|
50
|
+
NodeType["MAP"] = "MAP";
|
|
51
|
+
NodeType["POLL"] = "POLL";
|
|
52
|
+
NodeType["APP_EMBED"] = "APP_EMBED";
|
|
53
|
+
NodeType["BUTTON"] = "BUTTON";
|
|
54
|
+
NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
|
|
55
|
+
NodeType["TABLE"] = "TABLE";
|
|
56
|
+
NodeType["EMBED"] = "EMBED";
|
|
57
|
+
NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
|
|
58
|
+
NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
|
|
59
|
+
NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
|
|
60
|
+
NodeType["TABLE_CELL"] = "TABLE_CELL";
|
|
61
|
+
NodeType["TABLE_ROW"] = "TABLE_ROW";
|
|
62
|
+
NodeType["EXTERNAL"] = "EXTERNAL";
|
|
63
|
+
NodeType["AUDIO"] = "AUDIO";
|
|
64
|
+
NodeType["CAPTION"] = "CAPTION";
|
|
65
|
+
NodeType["LAYOUT"] = "LAYOUT";
|
|
66
|
+
NodeType["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
67
|
+
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
68
|
+
var WidthType;
|
|
69
|
+
(function (WidthType) {
|
|
70
|
+
/** Width matches the content width */
|
|
71
|
+
WidthType["CONTENT"] = "CONTENT";
|
|
72
|
+
/** Small Width */
|
|
73
|
+
WidthType["SMALL"] = "SMALL";
|
|
74
|
+
/** Width will match the original asset width */
|
|
75
|
+
WidthType["ORIGINAL"] = "ORIGINAL";
|
|
76
|
+
/** coast-to-coast display */
|
|
77
|
+
WidthType["FULL_WIDTH"] = "FULL_WIDTH";
|
|
78
|
+
})(WidthType || (exports.WidthType = WidthType = {}));
|
|
79
|
+
var PluginContainerDataAlignment;
|
|
80
|
+
(function (PluginContainerDataAlignment) {
|
|
81
|
+
/** Center Alignment */
|
|
82
|
+
PluginContainerDataAlignment["CENTER"] = "CENTER";
|
|
83
|
+
/** Left Alignment */
|
|
84
|
+
PluginContainerDataAlignment["LEFT"] = "LEFT";
|
|
85
|
+
/** Right Alignment */
|
|
86
|
+
PluginContainerDataAlignment["RIGHT"] = "RIGHT";
|
|
87
|
+
})(PluginContainerDataAlignment || (exports.PluginContainerDataAlignment = PluginContainerDataAlignment = {}));
|
|
88
|
+
var Type;
|
|
89
|
+
(function (Type) {
|
|
90
|
+
/** Regular link button */
|
|
91
|
+
Type["LINK"] = "LINK";
|
|
92
|
+
/** Triggers custom action that is defined in plugin configuration by the consumer */
|
|
93
|
+
Type["ACTION"] = "ACTION";
|
|
94
|
+
})(Type || (exports.Type = Type = {}));
|
|
95
|
+
var Target;
|
|
96
|
+
(function (Target) {
|
|
97
|
+
/** Opens the linked document in the same frame as it was clicked (this is default) */
|
|
98
|
+
Target["SELF"] = "SELF";
|
|
99
|
+
/** Opens the linked document in a new window or tab */
|
|
100
|
+
Target["BLANK"] = "BLANK";
|
|
101
|
+
/** Opens the linked document in the parent frame */
|
|
102
|
+
Target["PARENT"] = "PARENT";
|
|
103
|
+
/** Opens the linked document in the full body of the window */
|
|
104
|
+
Target["TOP"] = "TOP";
|
|
105
|
+
})(Target || (exports.Target = Target = {}));
|
|
106
|
+
var TextAlignment;
|
|
107
|
+
(function (TextAlignment) {
|
|
108
|
+
/** browser default, eqivalent to `initial` */
|
|
109
|
+
TextAlignment["AUTO"] = "AUTO";
|
|
110
|
+
/** Left align */
|
|
111
|
+
TextAlignment["LEFT"] = "LEFT";
|
|
112
|
+
/** Right align */
|
|
113
|
+
TextAlignment["RIGHT"] = "RIGHT";
|
|
114
|
+
/** Center align */
|
|
115
|
+
TextAlignment["CENTER"] = "CENTER";
|
|
116
|
+
/** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
|
|
117
|
+
TextAlignment["JUSTIFY"] = "JUSTIFY";
|
|
118
|
+
})(TextAlignment || (exports.TextAlignment = TextAlignment = {}));
|
|
119
|
+
var LineStyle;
|
|
120
|
+
(function (LineStyle) {
|
|
121
|
+
/** Single Line */
|
|
122
|
+
LineStyle["SINGLE"] = "SINGLE";
|
|
123
|
+
/** Double Line */
|
|
124
|
+
LineStyle["DOUBLE"] = "DOUBLE";
|
|
125
|
+
/** Dashed Line */
|
|
126
|
+
LineStyle["DASHED"] = "DASHED";
|
|
127
|
+
/** Dotted Line */
|
|
128
|
+
LineStyle["DOTTED"] = "DOTTED";
|
|
129
|
+
})(LineStyle || (exports.LineStyle = LineStyle = {}));
|
|
130
|
+
var Width;
|
|
131
|
+
(function (Width) {
|
|
132
|
+
/** Large line */
|
|
133
|
+
Width["LARGE"] = "LARGE";
|
|
134
|
+
/** Medium line */
|
|
135
|
+
Width["MEDIUM"] = "MEDIUM";
|
|
136
|
+
/** Small line */
|
|
137
|
+
Width["SMALL"] = "SMALL";
|
|
138
|
+
})(Width || (exports.Width = Width = {}));
|
|
139
|
+
var Alignment;
|
|
140
|
+
(function (Alignment) {
|
|
141
|
+
/** Center alignment */
|
|
142
|
+
Alignment["CENTER"] = "CENTER";
|
|
143
|
+
/** Left alignment */
|
|
144
|
+
Alignment["LEFT"] = "LEFT";
|
|
145
|
+
/** Right alignment */
|
|
146
|
+
Alignment["RIGHT"] = "RIGHT";
|
|
147
|
+
})(Alignment || (exports.Alignment = Alignment = {}));
|
|
148
|
+
var ViewMode;
|
|
149
|
+
(function (ViewMode) {
|
|
150
|
+
/** No PDF view */
|
|
151
|
+
ViewMode["NONE"] = "NONE";
|
|
152
|
+
/** Full PDF view */
|
|
153
|
+
ViewMode["FULL"] = "FULL";
|
|
154
|
+
/** Mini PDF view */
|
|
155
|
+
ViewMode["MINI"] = "MINI";
|
|
156
|
+
})(ViewMode || (exports.ViewMode = ViewMode = {}));
|
|
157
|
+
var LayoutType;
|
|
158
|
+
(function (LayoutType) {
|
|
159
|
+
/** Collage type */
|
|
160
|
+
LayoutType["COLLAGE"] = "COLLAGE";
|
|
161
|
+
/** Masonry type */
|
|
162
|
+
LayoutType["MASONRY"] = "MASONRY";
|
|
163
|
+
/** Grid type */
|
|
164
|
+
LayoutType["GRID"] = "GRID";
|
|
165
|
+
/** Thumbnail type */
|
|
166
|
+
LayoutType["THUMBNAIL"] = "THUMBNAIL";
|
|
167
|
+
/** Slider type */
|
|
168
|
+
LayoutType["SLIDER"] = "SLIDER";
|
|
169
|
+
/** Slideshow type */
|
|
170
|
+
LayoutType["SLIDESHOW"] = "SLIDESHOW";
|
|
171
|
+
/** Panorama type */
|
|
172
|
+
LayoutType["PANORAMA"] = "PANORAMA";
|
|
173
|
+
/** Column type */
|
|
174
|
+
LayoutType["COLUMN"] = "COLUMN";
|
|
175
|
+
/** Magic type */
|
|
176
|
+
LayoutType["MAGIC"] = "MAGIC";
|
|
177
|
+
/** Fullsize images type */
|
|
178
|
+
LayoutType["FULLSIZE"] = "FULLSIZE";
|
|
179
|
+
})(LayoutType || (exports.LayoutType = LayoutType = {}));
|
|
180
|
+
var Orientation;
|
|
181
|
+
(function (Orientation) {
|
|
182
|
+
/** Rows Orientation */
|
|
183
|
+
Orientation["ROWS"] = "ROWS";
|
|
184
|
+
/** Columns Orientation */
|
|
185
|
+
Orientation["COLUMNS"] = "COLUMNS";
|
|
186
|
+
})(Orientation || (exports.Orientation = Orientation = {}));
|
|
187
|
+
var Crop;
|
|
188
|
+
(function (Crop) {
|
|
189
|
+
/** Crop to fill */
|
|
190
|
+
Crop["FILL"] = "FILL";
|
|
191
|
+
/** Crop to fit */
|
|
192
|
+
Crop["FIT"] = "FIT";
|
|
193
|
+
})(Crop || (exports.Crop = Crop = {}));
|
|
194
|
+
var ThumbnailsAlignment;
|
|
195
|
+
(function (ThumbnailsAlignment) {
|
|
196
|
+
/** Top alignment */
|
|
197
|
+
ThumbnailsAlignment["TOP"] = "TOP";
|
|
198
|
+
/** Right alignment */
|
|
199
|
+
ThumbnailsAlignment["RIGHT"] = "RIGHT";
|
|
200
|
+
/** Bottom alignment */
|
|
201
|
+
ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
|
|
202
|
+
/** Left alignment */
|
|
203
|
+
ThumbnailsAlignment["LEFT"] = "LEFT";
|
|
204
|
+
/** No thumbnail */
|
|
205
|
+
ThumbnailsAlignment["NONE"] = "NONE";
|
|
206
|
+
})(ThumbnailsAlignment || (exports.ThumbnailsAlignment = ThumbnailsAlignment = {}));
|
|
207
|
+
var GIFType;
|
|
208
|
+
(function (GIFType) {
|
|
209
|
+
GIFType["GIF"] = "GIF";
|
|
210
|
+
GIFType["STICKER"] = "STICKER";
|
|
211
|
+
})(GIFType || (exports.GIFType = GIFType = {}));
|
|
212
|
+
var Source;
|
|
213
|
+
(function (Source) {
|
|
214
|
+
Source["HTML"] = "HTML";
|
|
215
|
+
Source["ADSENSE"] = "ADSENSE";
|
|
216
|
+
})(Source || (exports.Source = Source = {}));
|
|
217
|
+
var MapType;
|
|
218
|
+
(function (MapType) {
|
|
219
|
+
/** Roadmap map type */
|
|
220
|
+
MapType["ROADMAP"] = "ROADMAP";
|
|
221
|
+
/** Satellite map type */
|
|
222
|
+
MapType["SATELITE"] = "SATELITE";
|
|
223
|
+
/** Hybrid map type */
|
|
224
|
+
MapType["HYBRID"] = "HYBRID";
|
|
225
|
+
/** Terrain map type */
|
|
226
|
+
MapType["TERRAIN"] = "TERRAIN";
|
|
227
|
+
})(MapType || (exports.MapType = MapType = {}));
|
|
228
|
+
var ViewRole;
|
|
229
|
+
(function (ViewRole) {
|
|
230
|
+
/** Only Poll creator can view the results */
|
|
231
|
+
ViewRole["CREATOR"] = "CREATOR";
|
|
232
|
+
/** Anyone who voted can see the results */
|
|
233
|
+
ViewRole["VOTERS"] = "VOTERS";
|
|
234
|
+
/** Anyone can see the results, even if one didn't vote */
|
|
235
|
+
ViewRole["EVERYONE"] = "EVERYONE";
|
|
236
|
+
})(ViewRole || (exports.ViewRole = ViewRole = {}));
|
|
237
|
+
var VoteRole;
|
|
238
|
+
(function (VoteRole) {
|
|
239
|
+
/** Logged in member */
|
|
240
|
+
VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
|
|
241
|
+
/** Anyone */
|
|
242
|
+
VoteRole["ALL"] = "ALL";
|
|
243
|
+
})(VoteRole || (exports.VoteRole = VoteRole = {}));
|
|
244
|
+
var PollLayoutType;
|
|
245
|
+
(function (PollLayoutType) {
|
|
246
|
+
/** List */
|
|
247
|
+
PollLayoutType["LIST"] = "LIST";
|
|
248
|
+
/** Grid */
|
|
249
|
+
PollLayoutType["GRID"] = "GRID";
|
|
250
|
+
})(PollLayoutType || (exports.PollLayoutType = PollLayoutType = {}));
|
|
251
|
+
var PollLayoutDirection;
|
|
252
|
+
(function (PollLayoutDirection) {
|
|
253
|
+
/** Left-to-right */
|
|
254
|
+
PollLayoutDirection["LTR"] = "LTR";
|
|
255
|
+
/** Right-to-left */
|
|
256
|
+
PollLayoutDirection["RTL"] = "RTL";
|
|
257
|
+
})(PollLayoutDirection || (exports.PollLayoutDirection = PollLayoutDirection = {}));
|
|
258
|
+
var BackgroundType;
|
|
259
|
+
(function (BackgroundType) {
|
|
260
|
+
/** Color background type */
|
|
261
|
+
BackgroundType["COLOR"] = "COLOR";
|
|
262
|
+
/** Image background type */
|
|
263
|
+
BackgroundType["IMAGE"] = "IMAGE";
|
|
264
|
+
/** Gradiant background type */
|
|
265
|
+
BackgroundType["GRADIENT"] = "GRADIENT";
|
|
266
|
+
})(BackgroundType || (exports.BackgroundType = BackgroundType = {}));
|
|
267
|
+
var DecorationType;
|
|
268
|
+
(function (DecorationType) {
|
|
269
|
+
DecorationType["BOLD"] = "BOLD";
|
|
270
|
+
DecorationType["ITALIC"] = "ITALIC";
|
|
271
|
+
DecorationType["UNDERLINE"] = "UNDERLINE";
|
|
272
|
+
DecorationType["SPOILER"] = "SPOILER";
|
|
273
|
+
DecorationType["ANCHOR"] = "ANCHOR";
|
|
274
|
+
DecorationType["MENTION"] = "MENTION";
|
|
275
|
+
DecorationType["LINK"] = "LINK";
|
|
276
|
+
DecorationType["COLOR"] = "COLOR";
|
|
277
|
+
DecorationType["FONT_SIZE"] = "FONT_SIZE";
|
|
278
|
+
DecorationType["EXTERNAL"] = "EXTERNAL";
|
|
279
|
+
})(DecorationType || (exports.DecorationType = DecorationType = {}));
|
|
280
|
+
var FontType;
|
|
281
|
+
(function (FontType) {
|
|
282
|
+
FontType["PX"] = "PX";
|
|
283
|
+
FontType["EM"] = "EM";
|
|
284
|
+
})(FontType || (exports.FontType = FontType = {}));
|
|
285
|
+
var AppType;
|
|
286
|
+
(function (AppType) {
|
|
287
|
+
AppType["PRODUCT"] = "PRODUCT";
|
|
288
|
+
AppType["EVENT"] = "EVENT";
|
|
289
|
+
AppType["BOOKING"] = "BOOKING";
|
|
290
|
+
})(AppType || (exports.AppType = AppType = {}));
|
|
291
|
+
var InitialExpandedItems;
|
|
292
|
+
(function (InitialExpandedItems) {
|
|
293
|
+
/** First item will be expended initally */
|
|
294
|
+
InitialExpandedItems["FIRST"] = "FIRST";
|
|
295
|
+
/** All items will expended initally */
|
|
296
|
+
InitialExpandedItems["ALL"] = "ALL";
|
|
297
|
+
/** All items collapsed initally */
|
|
298
|
+
InitialExpandedItems["NONE"] = "NONE";
|
|
299
|
+
})(InitialExpandedItems || (exports.InitialExpandedItems = InitialExpandedItems = {}));
|
|
300
|
+
var Direction;
|
|
301
|
+
(function (Direction) {
|
|
302
|
+
/** Left-to-right */
|
|
303
|
+
Direction["LTR"] = "LTR";
|
|
304
|
+
/** Right-to-left */
|
|
305
|
+
Direction["RTL"] = "RTL";
|
|
306
|
+
})(Direction || (exports.Direction = Direction = {}));
|
|
307
|
+
var VerticalAlignment;
|
|
308
|
+
(function (VerticalAlignment) {
|
|
309
|
+
/** Top alignment */
|
|
310
|
+
VerticalAlignment["TOP"] = "TOP";
|
|
311
|
+
/** Middle alignment */
|
|
312
|
+
VerticalAlignment["MIDDLE"] = "MIDDLE";
|
|
313
|
+
/** Bottom alignment */
|
|
314
|
+
VerticalAlignment["BOTTOM"] = "BOTTOM";
|
|
315
|
+
})(VerticalAlignment || (exports.VerticalAlignment = VerticalAlignment = {}));
|
|
316
|
+
/**
|
|
317
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
318
|
+
* `Value` type union.
|
|
319
|
+
*
|
|
320
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
321
|
+
*/
|
|
322
|
+
var NullValue;
|
|
323
|
+
(function (NullValue) {
|
|
324
|
+
/** Null value. */
|
|
325
|
+
NullValue["NULL_VALUE"] = "NULL_VALUE";
|
|
326
|
+
})(NullValue || (exports.NullValue = NullValue = {}));
|
|
327
|
+
var RequestedFields;
|
|
328
|
+
(function (RequestedFields) {
|
|
329
|
+
RequestedFields["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
330
|
+
RequestedFields["ASSIGNED_PRODUCTS_COUNT"] = "ASSIGNED_PRODUCTS_COUNT";
|
|
331
|
+
})(RequestedFields || (exports.RequestedFields = RequestedFields = {}));
|
|
332
|
+
var SortOrder;
|
|
333
|
+
(function (SortOrder) {
|
|
334
|
+
SortOrder["ASC"] = "ASC";
|
|
335
|
+
SortOrder["DESC"] = "DESC";
|
|
336
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
337
|
+
var WebhookIdentityType;
|
|
338
|
+
(function (WebhookIdentityType) {
|
|
339
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
340
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
341
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
342
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
343
|
+
WebhookIdentityType["APP"] = "APP";
|
|
344
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
345
|
+
/**
|
|
346
|
+
* Creates an info section.
|
|
347
|
+
*
|
|
348
|
+
* To assign the info section to a product, include the `infoSection.id` or `infoSection.uniqueName`
|
|
349
|
+
* when [creating](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/create-product) or
|
|
350
|
+
* [updating](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/update-product) a product.
|
|
351
|
+
* @param infoSection - Info section to create.
|
|
352
|
+
* @public
|
|
353
|
+
* @documentationMaturity preview
|
|
354
|
+
* @requiredField infoSection
|
|
355
|
+
* @requiredField infoSection.title
|
|
356
|
+
* @requiredField infoSection.uniqueName
|
|
357
|
+
* @permissionId WIX_STORES.INFO_SECTION_CREATE
|
|
358
|
+
* @permissionScope Manage Products
|
|
359
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
360
|
+
* @permissionScope Info section write in v3 catalog
|
|
361
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
|
|
362
|
+
* @permissionScope Product write in v3 catalog
|
|
363
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
364
|
+
* @permissionScope Manage v3 catalog
|
|
365
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
366
|
+
* @applicableIdentity APP
|
|
367
|
+
* @returns Created info section.
|
|
368
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.CreateInfoSection
|
|
369
|
+
*/
|
|
370
|
+
async function createInfoSection(infoSection) {
|
|
371
|
+
// @ts-ignore
|
|
372
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
373
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
374
|
+
infoSection: infoSection,
|
|
375
|
+
});
|
|
376
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.createInfoSection(payload);
|
|
377
|
+
sideEffects?.onSiteCall?.();
|
|
378
|
+
try {
|
|
379
|
+
const result = await httpClient.request(reqOpts);
|
|
380
|
+
sideEffects?.onSuccess?.(result);
|
|
381
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.infoSection;
|
|
382
|
+
}
|
|
383
|
+
catch (err) {
|
|
384
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
385
|
+
spreadPathsToArguments: {},
|
|
386
|
+
explicitPathsToArguments: { infoSection: '$[0]' },
|
|
387
|
+
singleArgumentUnchanged: false,
|
|
388
|
+
}, ['infoSection']);
|
|
389
|
+
sideEffects?.onError?.(err);
|
|
390
|
+
throw transformedError;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
exports.createInfoSection = createInfoSection;
|
|
394
|
+
/**
|
|
395
|
+
* Retrieves an info section.
|
|
396
|
+
* @param infoSectionId - Info section ID.
|
|
397
|
+
* @public
|
|
398
|
+
* @documentationMaturity preview
|
|
399
|
+
* @requiredField infoSectionId
|
|
400
|
+
* @permissionId WIX_STORES.INFO_SECTION_READ
|
|
401
|
+
* @permissionScope Read info sections in v3 catalog
|
|
402
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_READ
|
|
403
|
+
* @permissionScope Read v3 catalog
|
|
404
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_READ
|
|
405
|
+
* @permissionScope Manage Products
|
|
406
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
407
|
+
* @permissionScope Read Products
|
|
408
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
409
|
+
* @permissionScope Product write in v3 catalog
|
|
410
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
411
|
+
* @permissionScope Manage v3 catalog
|
|
412
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
413
|
+
* @permissionScope Manage Orders
|
|
414
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
415
|
+
* @applicableIdentity APP
|
|
416
|
+
* @applicableIdentity VISITOR
|
|
417
|
+
* @returns Info section.
|
|
418
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.GetInfoSection
|
|
419
|
+
*/
|
|
420
|
+
async function getInfoSection(infoSectionId, options) {
|
|
421
|
+
// @ts-ignore
|
|
422
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
423
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
424
|
+
infoSectionId: infoSectionId,
|
|
425
|
+
fields: options?.fields,
|
|
426
|
+
});
|
|
427
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.getInfoSection(payload);
|
|
428
|
+
sideEffects?.onSiteCall?.();
|
|
429
|
+
try {
|
|
430
|
+
const result = await httpClient.request(reqOpts);
|
|
431
|
+
sideEffects?.onSuccess?.(result);
|
|
432
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.infoSection;
|
|
433
|
+
}
|
|
434
|
+
catch (err) {
|
|
435
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
436
|
+
spreadPathsToArguments: {},
|
|
437
|
+
explicitPathsToArguments: {
|
|
438
|
+
infoSectionId: '$[0]',
|
|
439
|
+
fields: '$[1].fields',
|
|
440
|
+
},
|
|
441
|
+
singleArgumentUnchanged: false,
|
|
442
|
+
}, ['infoSectionId', 'options']);
|
|
443
|
+
sideEffects?.onError?.(err);
|
|
444
|
+
throw transformedError;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
exports.getInfoSection = getInfoSection;
|
|
448
|
+
/**
|
|
449
|
+
* Retrieves an info section by ID or `uniqueName`, or creates an info section if one with the passed `uniqueName` doesn't exist.
|
|
450
|
+
*
|
|
451
|
+
* > **Note:** If an info section with the passed `uniqueName` doesn't exist, the `uniqueName` and `title` fields are required to create a new info section.
|
|
452
|
+
* @public
|
|
453
|
+
* @documentationMaturity preview
|
|
454
|
+
* @permissionId WIX_STORES.INFO_SECTION_GET_OR_CREATE
|
|
455
|
+
* @permissionScope Manage Products
|
|
456
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
457
|
+
* @permissionScope Info section write in v3 catalog
|
|
458
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
|
|
459
|
+
* @permissionScope Product write in v3 catalog
|
|
460
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
461
|
+
* @permissionScope Manage v3 catalog
|
|
462
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
463
|
+
* @applicableIdentity APP
|
|
464
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.GetOrCreateInfoSection
|
|
465
|
+
*/
|
|
466
|
+
async function getOrCreateInfoSection(options) {
|
|
467
|
+
// @ts-ignore
|
|
468
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
469
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
470
|
+
infoSection: options?.infoSection,
|
|
471
|
+
fields: options?.fields,
|
|
472
|
+
});
|
|
473
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.getOrCreateInfoSection(payload);
|
|
474
|
+
sideEffects?.onSiteCall?.();
|
|
475
|
+
try {
|
|
476
|
+
const result = await httpClient.request(reqOpts);
|
|
477
|
+
sideEffects?.onSuccess?.(result);
|
|
478
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
479
|
+
}
|
|
480
|
+
catch (err) {
|
|
481
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
482
|
+
spreadPathsToArguments: {},
|
|
483
|
+
explicitPathsToArguments: {
|
|
484
|
+
infoSection: '$[0].infoSection',
|
|
485
|
+
fields: '$[0].fields',
|
|
486
|
+
},
|
|
487
|
+
singleArgumentUnchanged: false,
|
|
488
|
+
}, ['options']);
|
|
489
|
+
sideEffects?.onError?.(err);
|
|
490
|
+
throw transformedError;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
exports.getOrCreateInfoSection = getOrCreateInfoSection;
|
|
494
|
+
/**
|
|
495
|
+
* Retrieves multiple info sections by ID or `uniqueName`, or creates multiple info sections if those with the passed `uniqueName` don't exist.
|
|
496
|
+
*
|
|
497
|
+
* > **Note:** If an info section with the passed `uniqueName` doesn't exist, the `uniqueName` and `title` fields are required to create a new info section.
|
|
498
|
+
* @public
|
|
499
|
+
* @documentationMaturity preview
|
|
500
|
+
* @permissionId WIX_STORES.INFO_SECTION_GET_OR_CREATE
|
|
501
|
+
* @permissionScope Manage Products
|
|
502
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
503
|
+
* @permissionScope Info section write in v3 catalog
|
|
504
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
|
|
505
|
+
* @permissionScope Product write in v3 catalog
|
|
506
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
507
|
+
* @permissionScope Manage v3 catalog
|
|
508
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
509
|
+
* @applicableIdentity APP
|
|
510
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkGetOrCreateInfoSections
|
|
511
|
+
*/
|
|
512
|
+
async function bulkGetOrCreateInfoSections(options) {
|
|
513
|
+
// @ts-ignore
|
|
514
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
515
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
516
|
+
infoSections: options?.infoSections,
|
|
517
|
+
fields: options?.fields,
|
|
518
|
+
});
|
|
519
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.bulkGetOrCreateInfoSections(payload);
|
|
520
|
+
sideEffects?.onSiteCall?.();
|
|
521
|
+
try {
|
|
522
|
+
const result = await httpClient.request(reqOpts);
|
|
523
|
+
sideEffects?.onSuccess?.(result);
|
|
524
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
525
|
+
}
|
|
526
|
+
catch (err) {
|
|
527
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
528
|
+
spreadPathsToArguments: {},
|
|
529
|
+
explicitPathsToArguments: {
|
|
530
|
+
infoSections: '$[0].infoSections',
|
|
531
|
+
fields: '$[0].fields',
|
|
532
|
+
},
|
|
533
|
+
singleArgumentUnchanged: false,
|
|
534
|
+
}, ['options']);
|
|
535
|
+
sideEffects?.onError?.(err);
|
|
536
|
+
throw transformedError;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
exports.bulkGetOrCreateInfoSections = bulkGetOrCreateInfoSections;
|
|
540
|
+
/**
|
|
541
|
+
* Updates an info section.
|
|
542
|
+
*
|
|
543
|
+
*
|
|
544
|
+
* Each time the info section is updated, `revision` increments by 1.
|
|
545
|
+
* The current `revision` must be passed when updating the info section.
|
|
546
|
+
* This ensures you're working with the latest info section and prevents unintended overwrites.
|
|
547
|
+
* @param _id - Info section ID.
|
|
548
|
+
* @public
|
|
549
|
+
* @documentationMaturity preview
|
|
550
|
+
* @requiredField _id
|
|
551
|
+
* @requiredField infoSection
|
|
552
|
+
* @requiredField infoSection.revision
|
|
553
|
+
* @permissionId WIX_STORES.INFO_SECTION_UPDATE
|
|
554
|
+
* @permissionScope Manage Products
|
|
555
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
556
|
+
* @permissionScope Info section write in v3 catalog
|
|
557
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
|
|
558
|
+
* @permissionScope Product write in v3 catalog
|
|
559
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
560
|
+
* @permissionScope Manage v3 catalog
|
|
561
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
562
|
+
* @applicableIdentity APP
|
|
563
|
+
* @returns Updated info section.
|
|
564
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.UpdateInfoSection
|
|
565
|
+
*/
|
|
566
|
+
async function updateInfoSection(_id, infoSection, options) {
|
|
567
|
+
// @ts-ignore
|
|
568
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
569
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
570
|
+
infoSection: { ...infoSection, id: _id },
|
|
571
|
+
fields: options?.fields,
|
|
572
|
+
});
|
|
573
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.updateInfoSection(payload);
|
|
574
|
+
sideEffects?.onSiteCall?.();
|
|
575
|
+
try {
|
|
576
|
+
const result = await httpClient.request(reqOpts);
|
|
577
|
+
sideEffects?.onSuccess?.(result);
|
|
578
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.infoSection;
|
|
579
|
+
}
|
|
580
|
+
catch (err) {
|
|
581
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
582
|
+
spreadPathsToArguments: { infoSection: '$[1]' },
|
|
583
|
+
explicitPathsToArguments: {
|
|
584
|
+
'infoSection.id': '$[0]',
|
|
585
|
+
fields: '$[2].fields',
|
|
586
|
+
},
|
|
587
|
+
singleArgumentUnchanged: false,
|
|
588
|
+
}, ['_id', 'infoSection', 'options']);
|
|
589
|
+
sideEffects?.onError?.(err);
|
|
590
|
+
throw transformedError;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
exports.updateInfoSection = updateInfoSection;
|
|
594
|
+
/**
|
|
595
|
+
* Deletes an info section.
|
|
596
|
+
*
|
|
597
|
+
* > **Note:** Deleting an info section will also remove it from all products it is assigned to.
|
|
598
|
+
* @param infoSectionId - Info section ID
|
|
599
|
+
* @public
|
|
600
|
+
* @documentationMaturity preview
|
|
601
|
+
* @requiredField infoSectionId
|
|
602
|
+
* @permissionId WIX_STORES.INFO_SECTION_DELETE
|
|
603
|
+
* @permissionScope Manage Products
|
|
604
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
605
|
+
* @permissionScope Info section write in v3 catalog
|
|
606
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
|
|
607
|
+
* @permissionScope Product write in v3 catalog
|
|
608
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
609
|
+
* @permissionScope Manage v3 catalog
|
|
610
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
611
|
+
* @applicableIdentity APP
|
|
612
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.DeleteInfoSection
|
|
613
|
+
*/
|
|
614
|
+
async function deleteInfoSection(infoSectionId) {
|
|
615
|
+
// @ts-ignore
|
|
616
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
617
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
618
|
+
infoSectionId: infoSectionId,
|
|
619
|
+
});
|
|
620
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.deleteInfoSection(payload);
|
|
621
|
+
sideEffects?.onSiteCall?.();
|
|
622
|
+
try {
|
|
623
|
+
const result = await httpClient.request(reqOpts);
|
|
624
|
+
sideEffects?.onSuccess?.(result);
|
|
625
|
+
}
|
|
626
|
+
catch (err) {
|
|
627
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
628
|
+
spreadPathsToArguments: {},
|
|
629
|
+
explicitPathsToArguments: { infoSectionId: '$[0]' },
|
|
630
|
+
singleArgumentUnchanged: false,
|
|
631
|
+
}, ['infoSectionId']);
|
|
632
|
+
sideEffects?.onError?.(err);
|
|
633
|
+
throw transformedError;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
exports.deleteInfoSection = deleteInfoSection;
|
|
637
|
+
/**
|
|
638
|
+
* Retrieves a list of up to 100 info sections, given the provided filtering, sorting, and cursor paging.
|
|
639
|
+
* Pass supported values to the `fields` array in the request to include those fields in the response.
|
|
640
|
+
*
|
|
641
|
+
*
|
|
642
|
+
* Query Info Sections runs with these defaults, which you can override:
|
|
643
|
+
*
|
|
644
|
+
* - `createdDate` is sorted in `DESC` order
|
|
645
|
+
* - `cursorPaging.limit` is `100`
|
|
646
|
+
*
|
|
647
|
+
* For field support for filters and sorting,
|
|
648
|
+
* see [Info Sections: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/info-sections-v3/supported-filters-and-sorting).
|
|
649
|
+
*
|
|
650
|
+
* To learn about working with _Query_ endpoints, see
|
|
651
|
+
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language),
|
|
652
|
+
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
653
|
+
* @public
|
|
654
|
+
* @documentationMaturity preview
|
|
655
|
+
* @permissionScope Read info sections in v3 catalog
|
|
656
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_READ
|
|
657
|
+
* @permissionScope Read v3 catalog
|
|
658
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_READ
|
|
659
|
+
* @permissionScope Manage Products
|
|
660
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
661
|
+
* @permissionScope Read Products
|
|
662
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
663
|
+
* @permissionScope Product write in v3 catalog
|
|
664
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
665
|
+
* @permissionScope Manage v3 catalog
|
|
666
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
667
|
+
* @permissionScope Manage Orders
|
|
668
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
669
|
+
* @permissionId WIX_STORES.INFO_SECTION_READ
|
|
670
|
+
* @applicableIdentity APP
|
|
671
|
+
* @applicableIdentity VISITOR
|
|
672
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.QueryInfoSections
|
|
673
|
+
*/
|
|
674
|
+
function queryInfoSections(options) {
|
|
675
|
+
// @ts-ignore
|
|
676
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
677
|
+
return (0, query_builder_1.queryBuilder)({
|
|
678
|
+
func: async (payload) => {
|
|
679
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.queryInfoSections({ ...payload, ...(options ?? {}) });
|
|
680
|
+
sideEffects?.onSiteCall?.();
|
|
681
|
+
try {
|
|
682
|
+
const result = await httpClient.request(reqOpts);
|
|
683
|
+
sideEffects?.onSuccess?.(result);
|
|
684
|
+
return result;
|
|
685
|
+
}
|
|
686
|
+
catch (err) {
|
|
687
|
+
sideEffects?.onError?.(err);
|
|
688
|
+
throw err;
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
requestTransformer: (query) => {
|
|
692
|
+
const args = [query, options];
|
|
693
|
+
return (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
694
|
+
...args?.[1],
|
|
695
|
+
query: args?.[0],
|
|
696
|
+
});
|
|
697
|
+
},
|
|
698
|
+
responseTransformer: ({ data, }) => {
|
|
699
|
+
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
700
|
+
return {
|
|
701
|
+
items: transformedData?.infoSections,
|
|
702
|
+
pagingMetadata: transformedData?.pagingMetadata,
|
|
703
|
+
};
|
|
704
|
+
},
|
|
705
|
+
errorTransformer: (err) => {
|
|
706
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
707
|
+
spreadPathsToArguments: {},
|
|
708
|
+
explicitPathsToArguments: { query: '$[0]' },
|
|
709
|
+
singleArgumentUnchanged: false,
|
|
710
|
+
});
|
|
711
|
+
throw transformedError;
|
|
712
|
+
},
|
|
713
|
+
pagingMethod: 'CURSOR',
|
|
714
|
+
transformationPaths: {},
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
exports.queryInfoSections = queryInfoSections;
|
|
718
|
+
/**
|
|
719
|
+
* Creates multiple info sections.
|
|
720
|
+
* @param infoSections - Info sections to create.
|
|
721
|
+
* @public
|
|
722
|
+
* @documentationMaturity preview
|
|
723
|
+
* @requiredField infoSections
|
|
724
|
+
* @requiredField infoSections.title
|
|
725
|
+
* @requiredField infoSections.uniqueName
|
|
726
|
+
* @permissionId WIX_STORES.INFO_SECTION_CREATE
|
|
727
|
+
* @permissionScope Manage Products
|
|
728
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
729
|
+
* @permissionScope Info section write in v3 catalog
|
|
730
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
|
|
731
|
+
* @permissionScope Product write in v3 catalog
|
|
732
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
733
|
+
* @permissionScope Manage v3 catalog
|
|
734
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
735
|
+
* @applicableIdentity APP
|
|
736
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkCreateInfoSections
|
|
737
|
+
*/
|
|
738
|
+
async function bulkCreateInfoSections(infoSections, options) {
|
|
739
|
+
// @ts-ignore
|
|
740
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
741
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
742
|
+
infoSections: infoSections,
|
|
743
|
+
returnEntity: options?.returnEntity,
|
|
744
|
+
});
|
|
745
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.bulkCreateInfoSections(payload);
|
|
746
|
+
sideEffects?.onSiteCall?.();
|
|
747
|
+
try {
|
|
748
|
+
const result = await httpClient.request(reqOpts);
|
|
749
|
+
sideEffects?.onSuccess?.(result);
|
|
750
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
751
|
+
}
|
|
752
|
+
catch (err) {
|
|
753
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
754
|
+
spreadPathsToArguments: {},
|
|
755
|
+
explicitPathsToArguments: {
|
|
756
|
+
infoSections: '$[0]',
|
|
757
|
+
returnEntity: '$[1].returnEntity',
|
|
758
|
+
},
|
|
759
|
+
singleArgumentUnchanged: false,
|
|
760
|
+
}, ['infoSections', 'options']);
|
|
761
|
+
sideEffects?.onError?.(err);
|
|
762
|
+
throw transformedError;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
exports.bulkCreateInfoSections = bulkCreateInfoSections;
|
|
766
|
+
/**
|
|
767
|
+
* Updates multiple info sections.
|
|
768
|
+
*
|
|
769
|
+
* Each time an info section is updated, `revision` increments by 1.
|
|
770
|
+
* The current `revision` must be passed when updating an info section.
|
|
771
|
+
* This ensures you're working with the latest info section and prevents unintended overwrites.
|
|
772
|
+
* @param infoSections - List of info sections to update.
|
|
773
|
+
* @public
|
|
774
|
+
* @documentationMaturity preview
|
|
775
|
+
* @requiredField infoSections
|
|
776
|
+
* @requiredField infoSections.infoSection._id
|
|
777
|
+
* @requiredField infoSections.infoSection.revision
|
|
778
|
+
* @permissionId WIX_STORES.INFO_SECTION_UPDATE
|
|
779
|
+
* @permissionScope Manage Products
|
|
780
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
781
|
+
* @permissionScope Info section write in v3 catalog
|
|
782
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
|
|
783
|
+
* @permissionScope Product write in v3 catalog
|
|
784
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
785
|
+
* @permissionScope Manage v3 catalog
|
|
786
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
787
|
+
* @applicableIdentity APP
|
|
788
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkUpdateInfoSections
|
|
789
|
+
*/
|
|
790
|
+
async function bulkUpdateInfoSections(infoSections, options) {
|
|
791
|
+
// @ts-ignore
|
|
792
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
793
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
794
|
+
infoSections: infoSections,
|
|
795
|
+
returnEntity: options?.returnEntity,
|
|
796
|
+
fields: options?.fields,
|
|
797
|
+
});
|
|
798
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.bulkUpdateInfoSections(payload);
|
|
799
|
+
sideEffects?.onSiteCall?.();
|
|
800
|
+
try {
|
|
801
|
+
const result = await httpClient.request(reqOpts);
|
|
802
|
+
sideEffects?.onSuccess?.(result);
|
|
803
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
804
|
+
}
|
|
805
|
+
catch (err) {
|
|
806
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
807
|
+
spreadPathsToArguments: {},
|
|
808
|
+
explicitPathsToArguments: {
|
|
809
|
+
infoSections: '$[0]',
|
|
810
|
+
returnEntity: '$[1].returnEntity',
|
|
811
|
+
fields: '$[1].fields',
|
|
812
|
+
},
|
|
813
|
+
singleArgumentUnchanged: false,
|
|
814
|
+
}, ['infoSections', 'options']);
|
|
815
|
+
sideEffects?.onError?.(err);
|
|
816
|
+
throw transformedError;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
exports.bulkUpdateInfoSections = bulkUpdateInfoSections;
|
|
820
|
+
/**
|
|
821
|
+
* Deletes multiple info sections.
|
|
822
|
+
* @param infoSectionIds - IDs of info sections to delete.
|
|
823
|
+
* @public
|
|
824
|
+
* @documentationMaturity preview
|
|
825
|
+
* @requiredField infoSectionIds
|
|
826
|
+
* @permissionId WIX_STORES.INFO_SECTION_DELETE
|
|
827
|
+
* @permissionScope Manage Products
|
|
828
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
829
|
+
* @permissionScope Info section write in v3 catalog
|
|
830
|
+
* @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
|
|
831
|
+
* @permissionScope Product write in v3 catalog
|
|
832
|
+
* @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
|
|
833
|
+
* @permissionScope Manage v3 catalog
|
|
834
|
+
* @permissionScopeId SCOPE.STORES.CATALOG_WRITE
|
|
835
|
+
* @applicableIdentity APP
|
|
836
|
+
* @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkDeleteInfoSections
|
|
837
|
+
*/
|
|
838
|
+
async function bulkDeleteInfoSections(infoSectionIds) {
|
|
839
|
+
// @ts-ignore
|
|
840
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
841
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
842
|
+
infoSectionIds: infoSectionIds,
|
|
843
|
+
});
|
|
844
|
+
const reqOpts = ambassadorWixStoresCatalogV3InfoSection.bulkDeleteInfoSections(payload);
|
|
845
|
+
sideEffects?.onSiteCall?.();
|
|
846
|
+
try {
|
|
847
|
+
const result = await httpClient.request(reqOpts);
|
|
848
|
+
sideEffects?.onSuccess?.(result);
|
|
849
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
850
|
+
}
|
|
851
|
+
catch (err) {
|
|
852
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
853
|
+
spreadPathsToArguments: {},
|
|
854
|
+
explicitPathsToArguments: { infoSectionIds: '$[0]' },
|
|
855
|
+
singleArgumentUnchanged: false,
|
|
856
|
+
}, ['infoSectionIds']);
|
|
857
|
+
sideEffects?.onError?.(err);
|
|
858
|
+
throw transformedError;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
exports.bulkDeleteInfoSections = bulkDeleteInfoSections;
|
|
862
|
+
//# sourceMappingURL=stores-catalog-v3-info-section-info-sections-v-3.universal.js.map
|