@wix/auto_sdk_benefit-programs_pool-definition-items 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 +25 -0
- package/build/cjs/index.js +203 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +543 -0
- package/build/cjs/index.typings.js +180 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +507 -0
- package/build/cjs/meta.js +154 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +26 -0
- package/build/cjs/schemas.js +87 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +25 -0
- package/build/es/index.mjs +172 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +543 -0
- package/build/es/index.typings.mjs +149 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +507 -0
- package/build/es/meta.mjs +123 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +26 -0
- package/build/es/schemas.mjs +47 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +25 -0
- package/build/internal/cjs/index.js +203 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +574 -0
- package/build/internal/cjs/index.typings.js +180 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +507 -0
- package/build/internal/cjs/meta.js +154 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +26 -0
- package/build/internal/cjs/schemas.js +87 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +25 -0
- package/build/internal/es/index.mjs +172 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +574 -0
- package/build/internal/es/index.typings.mjs +149 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +507 -0
- package/build/internal/es/meta.mjs +123 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +26 -0
- package/build/internal/es/schemas.mjs +47 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const RemoveItemsFromBenefitRequest: z.ZodObject<{
|
|
4
|
+
itemReferences: z.ZodArray<z.ZodObject<{
|
|
5
|
+
externalId: z.ZodString;
|
|
6
|
+
category: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
options: z.ZodObject<{
|
|
9
|
+
poolDefinitionId: z.ZodString;
|
|
10
|
+
benefitKey: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const RemoveItemsFromBenefitResponse: z.ZodObject<{}, z.core.$strip>;
|
|
14
|
+
declare const AddItemsToBenefitRequest: z.ZodObject<{
|
|
15
|
+
itemReferences: z.ZodArray<z.ZodObject<{
|
|
16
|
+
externalId: z.ZodString;
|
|
17
|
+
category: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
options: z.ZodObject<{
|
|
20
|
+
poolDefinitionId: z.ZodString;
|
|
21
|
+
benefitKey: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const AddItemsToBenefitResponse: z.ZodObject<{}, z.core.$strip>;
|
|
25
|
+
|
|
26
|
+
export { AddItemsToBenefitRequest, AddItemsToBenefitResponse, RemoveItemsFromBenefitRequest, RemoveItemsFromBenefitResponse };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// src/benefit-programs-v1-pool-definition-item-pool-definition-items.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var RemoveItemsFromBenefitRequest = z.object({
|
|
4
|
+
itemReferences: z.array(
|
|
5
|
+
z.object({
|
|
6
|
+
externalId: z.string().describe("External item ID assigned by the provider.").regex(
|
|
7
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
8
|
+
"Must be a valid GUID"
|
|
9
|
+
),
|
|
10
|
+
category: z.string().describe("Item category.").max(20).optional()
|
|
11
|
+
})
|
|
12
|
+
).min(1).max(100),
|
|
13
|
+
options: z.object({
|
|
14
|
+
poolDefinitionId: z.string().describe("ID of the pool definition associated with the benefit.").regex(
|
|
15
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
16
|
+
"Must be a valid GUID"
|
|
17
|
+
),
|
|
18
|
+
benefitKey: z.string().describe("Key identifying the benefit within the pool definition.").max(64)
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
var RemoveItemsFromBenefitResponse = z.object({});
|
|
22
|
+
var AddItemsToBenefitRequest = z.object({
|
|
23
|
+
itemReferences: z.array(
|
|
24
|
+
z.object({
|
|
25
|
+
externalId: z.string().describe("External item ID assigned by the provider.").regex(
|
|
26
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
27
|
+
"Must be a valid GUID"
|
|
28
|
+
),
|
|
29
|
+
category: z.string().describe("Item category.").max(20).optional()
|
|
30
|
+
})
|
|
31
|
+
).min(1).max(100),
|
|
32
|
+
options: z.object({
|
|
33
|
+
poolDefinitionId: z.string().describe("ID of the pool definition associated with the benefit.").regex(
|
|
34
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
35
|
+
"Must be a valid GUID"
|
|
36
|
+
),
|
|
37
|
+
benefitKey: z.string().describe("Key identifying the benefit within the pool definition.").max(64)
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
var AddItemsToBenefitResponse = z.object({});
|
|
41
|
+
export {
|
|
42
|
+
AddItemsToBenefitRequest,
|
|
43
|
+
AddItemsToBenefitResponse,
|
|
44
|
+
RemoveItemsFromBenefitRequest,
|
|
45
|
+
RemoveItemsFromBenefitResponse
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/benefit-programs-v1-pool-definition-item-pool-definition-items.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const RemoveItemsFromBenefitRequest = z.object({\n itemReferences: z\n .array(\n z.object({\n externalId: z\n .string()\n .describe('External item ID assigned by the provider.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n category: z.string().describe('Item category.').max(20).optional(),\n })\n )\n .min(1)\n .max(100),\n options: z.object({\n poolDefinitionId: z\n .string()\n .describe('ID of the pool definition associated with the benefit.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n benefitKey: z\n .string()\n .describe('Key identifying the benefit within the pool definition.')\n .max(64),\n }),\n});\nexport const RemoveItemsFromBenefitResponse = z.object({});\nexport const AddItemsToBenefitRequest = z.object({\n itemReferences: z\n .array(\n z.object({\n externalId: z\n .string()\n .describe('External item ID assigned by the provider.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n category: z.string().describe('Item category.').max(20).optional(),\n })\n )\n .min(1)\n .max(100),\n options: z.object({\n poolDefinitionId: z\n .string()\n .describe('ID of the pool definition associated with the benefit.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n benefitKey: z\n .string()\n .describe('Key identifying the benefit within the pool definition.')\n .max(64),\n }),\n});\nexport const AddItemsToBenefitResponse = z.object({});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,gCAAkC,SAAO;AAAA,EACpD,gBACG;AAAA,IACG,SAAO;AAAA,MACP,YACG,SAAO,EACP,SAAS,4CAA4C,EACrD;AAAA,QACC;AAAA,QACA;AAAA,MACF;AAAA,MACF,UAAY,SAAO,EAAE,SAAS,gBAAgB,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IACnE,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SAAW,SAAO;AAAA,IAChB,kBACG,SAAO,EACP,SAAS,wDAAwD,EACjE;AAAA,MACC;AAAA,MACA;AAAA,IACF;AAAA,IACF,YACG,SAAO,EACP,SAAS,yDAAyD,EAClE,IAAI,EAAE;AAAA,EACX,CAAC;AACH,CAAC;AACM,IAAM,iCAAmC,SAAO,CAAC,CAAC;AAClD,IAAM,2BAA6B,SAAO;AAAA,EAC/C,gBACG;AAAA,IACG,SAAO;AAAA,MACP,YACG,SAAO,EACP,SAAS,4CAA4C,EACrD;AAAA,QACC;AAAA,QACA;AAAA,MACF;AAAA,MACF,UAAY,SAAO,EAAE,SAAS,gBAAgB,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IACnE,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SAAW,SAAO;AAAA,IAChB,kBACG,SAAO,EACP,SAAS,wDAAwD,EACjE;AAAA,MACC;AAAA,MACA;AAAA,IACF;AAAA,IACF,YACG,SAAO,EACP,SAAS,yDAAyD,EAClE,IAAI,EAAE;AAAA,EACX,CAAC;AACH,CAAC;AACM,IAAM,4BAA8B,SAAO,CAAC,CAAC;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/auto_sdk_benefit-programs_pool-definition-items",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/",
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"main": "./build/cjs/index.js",
|
|
12
|
+
"types": "./build/cjs/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./build/es/index.mjs",
|
|
16
|
+
"require": "./build/cjs/index.js",
|
|
17
|
+
"types": "./build/es/index.d.mts"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json",
|
|
20
|
+
"./meta": {
|
|
21
|
+
"import": "./build/es/meta.mjs",
|
|
22
|
+
"require": "./build/cjs/meta.js",
|
|
23
|
+
"types": "./build/es/meta.d.mts"
|
|
24
|
+
},
|
|
25
|
+
"./schemas": {
|
|
26
|
+
"import": "./build/es/schemas.mjs",
|
|
27
|
+
"require": "./build/cjs/schemas.js",
|
|
28
|
+
"types": "./build/es/schemas.d.mts"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"build",
|
|
33
|
+
"meta",
|
|
34
|
+
"service-plugins",
|
|
35
|
+
"schemas"
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@wix/sdk-runtime": "^1.0.12",
|
|
39
|
+
"@wix/sdk-types": "^1.17.7",
|
|
40
|
+
"zod": "^4.3.6"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"tsup": "^8.4.0",
|
|
44
|
+
"typescript": "^5.3.2"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsup",
|
|
48
|
+
"test": ":"
|
|
49
|
+
},
|
|
50
|
+
"wix": {
|
|
51
|
+
"artifact": {
|
|
52
|
+
"artifactId": "auto-sdk-benefit-programs-pool-definition-items",
|
|
53
|
+
"groupId": "com.wixpress.public-sdk-dependencies"
|
|
54
|
+
},
|
|
55
|
+
"sdkDependency": {
|
|
56
|
+
"fqdnNamespace": "poolDefinitionItems",
|
|
57
|
+
"fqdn": "wix.benefit_programs.v1.pool_definition_item"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"falconPackageHash": "86964f0fe32f4bf4d45222f284891f6d3ec6767cf69f03d5e0c7ee77"
|
|
61
|
+
}
|