@wix/auto_sdk_stores_info-sections-v-3 1.0.32 → 1.0.34
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 +8 -8
- package/build/cjs/index.js +12 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -10
- package/build/cjs/index.typings.js +12 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +13 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +8 -8
- package/build/es/index.mjs +12 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -10
- package/build/es/index.typings.mjs +12 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs +13 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -8
- package/build/internal/cjs/index.js +12 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -10
- package/build/internal/cjs/index.typings.js +12 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/meta.js +13 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -8
- package/build/internal/es/index.mjs +12 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -10
- package/build/internal/es/index.typings.mjs +12 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/meta.mjs +13 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface CreateInfoSectionSignature {
|
|
|
13
13
|
* @param - Info section to create.
|
|
14
14
|
* @returns Created info section.
|
|
15
15
|
*/
|
|
16
|
-
(infoSection: NonNullablePaths<InfoSection, `title` | `uniqueName
|
|
16
|
+
(infoSection: NonNullablePaths<InfoSection, `title` | `uniqueName`, 2>): Promise<NonNullablePaths<InfoSection, `uniqueName` | `title`, 2> & {
|
|
17
17
|
__validationErrorsType?: CreateInfoSectionValidationErrors;
|
|
18
18
|
}>;
|
|
19
19
|
}
|
|
@@ -24,7 +24,7 @@ interface GetInfoSectionSignature {
|
|
|
24
24
|
* @param - Info section ID.
|
|
25
25
|
* @returns Info section.
|
|
26
26
|
*/
|
|
27
|
-
(infoSectionId: string, options?: GetInfoSectionOptions): Promise<NonNullablePaths<InfoSection, `uniqueName` | `title
|
|
27
|
+
(infoSectionId: string, options?: GetInfoSectionOptions): Promise<NonNullablePaths<InfoSection, `uniqueName` | `title`, 2>>;
|
|
28
28
|
}
|
|
29
29
|
declare function getOrCreateInfoSection$1(httpClient: HttpClient): GetOrCreateInfoSectionSignature;
|
|
30
30
|
interface GetOrCreateInfoSectionSignature {
|
|
@@ -33,7 +33,7 @@ interface GetOrCreateInfoSectionSignature {
|
|
|
33
33
|
*
|
|
34
34
|
* > **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.
|
|
35
35
|
*/
|
|
36
|
-
(options?: GetOrCreateInfoSectionOptions): Promise<NonNullablePaths<GetOrCreateInfoSectionResponse, `infoSection.uniqueName` | `infoSection.title
|
|
36
|
+
(options?: GetOrCreateInfoSectionOptions): Promise<NonNullablePaths<GetOrCreateInfoSectionResponse, `infoSection.uniqueName` | `infoSection.title`, 3> & {
|
|
37
37
|
__validationErrorsType?: GetOrCreateInfoSectionValidationErrors;
|
|
38
38
|
}>;
|
|
39
39
|
}
|
|
@@ -44,7 +44,7 @@ interface BulkGetOrCreateInfoSectionsSignature {
|
|
|
44
44
|
*
|
|
45
45
|
* > **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.
|
|
46
46
|
*/
|
|
47
|
-
(options?: BulkGetOrCreateInfoSectionsOptions): Promise<NonNullablePaths<BulkGetOrCreateInfoSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.uniqueName` | `results.${number}.item.title` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures
|
|
47
|
+
(options?: BulkGetOrCreateInfoSectionsOptions): Promise<NonNullablePaths<BulkGetOrCreateInfoSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.uniqueName` | `results.${number}.item.title` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
|
|
48
48
|
__validationErrorsType?: BulkGetOrCreateInfoSectionsValidationErrors;
|
|
49
49
|
}>;
|
|
50
50
|
}
|
|
@@ -60,7 +60,7 @@ interface UpdateInfoSectionSignature {
|
|
|
60
60
|
* @param - Info section ID.
|
|
61
61
|
* @returns Updated info section.
|
|
62
62
|
*/
|
|
63
|
-
(_id: string, infoSection: NonNullablePaths<UpdateInfoSection, `revision
|
|
63
|
+
(_id: string, infoSection: NonNullablePaths<UpdateInfoSection, `revision`, 2>, options?: UpdateInfoSectionOptions): Promise<NonNullablePaths<InfoSection, `uniqueName` | `title`, 2>>;
|
|
64
64
|
}
|
|
65
65
|
declare function deleteInfoSection$1(httpClient: HttpClient): DeleteInfoSectionSignature;
|
|
66
66
|
interface DeleteInfoSectionSignature {
|
|
@@ -99,7 +99,7 @@ interface BulkCreateInfoSectionsSignature {
|
|
|
99
99
|
* Creates multiple info sections.
|
|
100
100
|
* @param - Info sections to create.
|
|
101
101
|
*/
|
|
102
|
-
(infoSections: NonNullablePaths<InfoSection, `title` | `uniqueName
|
|
102
|
+
(infoSections: NonNullablePaths<InfoSection, `title` | `uniqueName`, 2>[], options?: BulkCreateInfoSectionsOptions): Promise<NonNullablePaths<BulkCreateInfoSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.uniqueName` | `results.${number}.item.title` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
|
|
103
103
|
__validationErrorsType?: BulkCreateInfoSectionsValidationErrors;
|
|
104
104
|
}>;
|
|
105
105
|
}
|
|
@@ -113,7 +113,7 @@ interface BulkUpdateInfoSectionsSignature {
|
|
|
113
113
|
* This ensures you're working with the latest info section and prevents unintended overwrites.
|
|
114
114
|
* @param - List of info sections to update.
|
|
115
115
|
*/
|
|
116
|
-
(infoSections: NonNullablePaths<MaskedInfoSection, `infoSection._id` | `infoSection.revision
|
|
116
|
+
(infoSections: NonNullablePaths<MaskedInfoSection, `infoSection._id` | `infoSection.revision`, 3>[], options?: BulkUpdateInfoSectionsOptions): Promise<NonNullablePaths<BulkUpdateInfoSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.uniqueName` | `results.${number}.item.title` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
117
117
|
}
|
|
118
118
|
declare function bulkDeleteInfoSections$1(httpClient: HttpClient): BulkDeleteInfoSectionsSignature;
|
|
119
119
|
interface BulkDeleteInfoSectionsSignature {
|
|
@@ -121,7 +121,7 @@ interface BulkDeleteInfoSectionsSignature {
|
|
|
121
121
|
* Deletes multiple info sections.
|
|
122
122
|
* @param - IDs of info sections to delete.
|
|
123
123
|
*/
|
|
124
|
-
(infoSectionIds: string[]): Promise<NonNullablePaths<BulkDeleteInfoSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures
|
|
124
|
+
(infoSectionIds: string[]): Promise<NonNullablePaths<BulkDeleteInfoSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
125
125
|
}
|
|
126
126
|
declare const onInfoSectionCreated$1: EventDefinition<InfoSectionCreatedEnvelope, "wix.stores.catalog.v3.info_section_created">;
|
|
127
127
|
declare const onInfoSectionDeleted$1: EventDefinition<InfoSectionDeletedEnvelope, "wix.stores.catalog.v3.info_section_deleted">;
|
package/build/cjs/index.js
CHANGED
|
@@ -817,7 +817,18 @@ function queryInfoSections(payload) {
|
|
|
817
817
|
}
|
|
818
818
|
]
|
|
819
819
|
}
|
|
820
|
-
])
|
|
820
|
+
]),
|
|
821
|
+
fallback: [
|
|
822
|
+
{
|
|
823
|
+
method: "POST",
|
|
824
|
+
url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
|
|
825
|
+
protoPath: "/v3/info-sections/query",
|
|
826
|
+
data: payload,
|
|
827
|
+
host
|
|
828
|
+
}),
|
|
829
|
+
data: payload
|
|
830
|
+
}
|
|
831
|
+
]
|
|
821
832
|
};
|
|
822
833
|
return metadata;
|
|
823
834
|
}
|