@wix/auto_sdk_benefit-programs_program-definitions 1.0.13 → 1.0.15

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 (134) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.d.ts +10 -0
  11. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.js +16 -0
  12. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.js.map +1 -0
  13. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +33 -0
  14. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js +305 -0
  15. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -0
  16. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.d.ts +24 -0
  17. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.js +142 -0
  18. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.js.map +1 -0
  19. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +72 -0
  20. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js +46 -0
  21. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -0
  22. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +385 -0
  23. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js +30 -0
  24. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -0
  25. package/build/{benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.d.mts → cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts} +160 -44
  26. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +341 -0
  27. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.context.d.ts +10 -0
  39. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.context.js +10 -0
  40. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.context.js.map +1 -0
  41. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +33 -0
  42. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +296 -0
  43. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -0
  44. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.meta.d.ts +24 -0
  45. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.meta.js +110 -0
  46. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.meta.js.map +1 -0
  47. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +72 -0
  48. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.js +34 -0
  49. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -0
  50. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +385 -0
  51. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js +27 -0
  52. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -0
  53. package/build/{benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.d.ts → es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts} +160 -44
  54. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +309 -0
  55. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.d.ts +10 -0
  66. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.js +16 -0
  67. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.context.js.map +1 -0
  68. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +33 -0
  69. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js +305 -0
  70. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -0
  71. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.d.ts +24 -0
  72. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.js +142 -0
  73. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.meta.js.map +1 -0
  74. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +72 -0
  75. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js +46 -0
  76. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -0
  77. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +385 -0
  78. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js +30 -0
  79. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -0
  80. package/build/internal/{benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.d.mts → cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts} +160 -44
  81. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +341 -0
  82. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.context.d.ts +10 -0
  93. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.context.js +10 -0
  94. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.context.js.map +1 -0
  95. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +33 -0
  96. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +296 -0
  97. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -0
  98. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.meta.d.ts +24 -0
  99. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.meta.js +110 -0
  100. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.meta.js.map +1 -0
  101. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +72 -0
  102. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.js +34 -0
  103. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -0
  104. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +385 -0
  105. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.js +27 -0
  106. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -0
  107. package/build/internal/{benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.d.ts → es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts} +160 -44
  108. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +309 -0
  109. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -0
  110. package/package.json +13 -14
  111. package/build/index.d.mts +0 -79
  112. package/build/index.d.ts +0 -79
  113. package/build/index.js +0 -600
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -568
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -79
  118. package/build/internal/index.d.ts +0 -79
  119. package/build/internal/index.js +0 -600
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -568
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -245
  124. package/build/internal/meta.d.ts +0 -245
  125. package/build/internal/meta.js +0 -445
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -413
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -245
  130. package/build/meta.d.ts +0 -245
  131. package/build/meta.js +0 -445
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -413
  134. package/build/meta.mjs.map +0 -1
package/build/meta.d.mts DELETED
@@ -1,245 +0,0 @@
1
- import { c as CreateProgramDefinitionRequest$1, d as CreateProgramDefinitionResponse$1, e as UpdateProgramDefinitionRequest$1, f as UpdateProgramDefinitionResponse$1, g as DeleteProgramDefinitionRequest$1, h as DeleteProgramDefinitionResponse$1, i as GetProgramDefinitionRequest$1, j as GetProgramDefinitionResponse$1, k as GetProgramDefinitionByExternalIdAndNamespaceRequest$1, a as GetProgramDefinitionByExternalIdAndNamespaceResponse$1, Q as QueryProgramDefinitionsRequest$1, p as QueryProgramDefinitionsResponse$1 } from './benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.mjs';
2
-
3
- interface ProgramDefinition {
4
- /**
5
- * Program definition ID.
6
- * @format GUID
7
- * @immutable
8
- * @readonly
9
- */
10
- id?: string | null;
11
- /**
12
- * Revision number, which increments by 1 each time the program definition is updated.
13
- * To prevent conflicting changes, the current revision must be passed when updating the program definition.
14
- *
15
- * Ignored when creating a program definition.
16
- * @readonly
17
- */
18
- revision?: string | null;
19
- /**
20
- * Date and time the program definition was created.
21
- * @readonly
22
- */
23
- createdDate?: Date | null;
24
- /**
25
- * Date and time the program definition was updated.
26
- * @readonly
27
- */
28
- updatedDate?: Date | null;
29
- /**
30
- * Program definition name.
31
- * @maxLength 64
32
- */
33
- displayName?: string | null;
34
- /**
35
- * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
36
- * @immutable
37
- * @readonly
38
- * @minLength 1
39
- * @maxLength 50
40
- */
41
- namespace?: string | null;
42
- /**
43
- * Custom field data for the program definition object.
44
- *
45
- * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
46
- */
47
- extendedFields?: ExtendedFields;
48
- /**
49
- * ID for the program definition defined by you. You can use `externalId` to filter queries.
50
- * @format GUID
51
- * @immutable
52
- * @readonly
53
- */
54
- externalId?: string | null;
55
- }
56
- interface ExtendedFields {
57
- /**
58
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
59
- * The value of each key is structured according to the schema defined when the extended fields were configured.
60
- *
61
- * You can only access fields for which you have the appropriate permissions.
62
- *
63
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
64
- */
65
- namespaces?: Record<string, Record<string, any>>;
66
- }
67
- interface CreateProgramDefinitionRequest {
68
- /** Program definition to create. */
69
- programDefinition: ProgramDefinition;
70
- }
71
- interface CreateProgramDefinitionResponse {
72
- /** Created program definition. */
73
- programDefinition?: ProgramDefinition;
74
- }
75
- interface UpdateProgramDefinitionRequest {
76
- /** Program definition to update. */
77
- programDefinition: ProgramDefinition;
78
- }
79
- interface UpdateProgramDefinitionResponse {
80
- /** Updated program definition. */
81
- programDefinition?: ProgramDefinition;
82
- }
83
- interface DeleteProgramDefinitionRequest {
84
- /**
85
- * ID of the program definition to delete.
86
- * @format GUID
87
- */
88
- programDefinitionId: string;
89
- /** Determines when the changes to this program definition will be applied to associated programs and pools. */
90
- cascadeType?: Cascade;
91
- }
92
- declare enum Cascade {
93
- /** Unknown cascade. */
94
- UNKNOWN_CASCADE = "UNKNOWN_CASCADE",
95
- /** Changes are applied to existing programs and pools when they are next renewed. */
96
- NEXT_RENEWAL = "NEXT_RENEWAL",
97
- /** Changes are applied to associated programs and pools immediately. */
98
- IMMEDIATELY = "IMMEDIATELY",
99
- /** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
100
- FUTURE_PROVISIONS = "FUTURE_PROVISIONS"
101
- }
102
- interface DeleteProgramDefinitionResponse {
103
- }
104
- interface GetProgramDefinitionRequest {
105
- /**
106
- * ID of the program definition to retrieve.
107
- * @format GUID
108
- */
109
- programDefinitionId: string;
110
- }
111
- interface GetProgramDefinitionResponse {
112
- /** Retrieved program definition. */
113
- programDefinition?: ProgramDefinition;
114
- }
115
- interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
116
- /**
117
- * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
118
- * @minLength 1
119
- * @maxLength 50
120
- */
121
- namespace: string;
122
- /**
123
- * Program definition external ID.
124
- * @format GUID
125
- */
126
- externalId: string;
127
- }
128
- interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
129
- /** Retrieved program definition. */
130
- programDefinition?: ProgramDefinition;
131
- }
132
- interface QueryProgramDefinitionsRequest {
133
- /** Filter, sort, and paging to apply to the query. */
134
- query?: CursorQuery;
135
- }
136
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
137
- /** 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`. */
138
- cursorPaging?: CursorPaging;
139
- /**
140
- * Filter object.
141
- * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
142
- * for more information.
143
- */
144
- filter?: Record<string, any> | null;
145
- /**
146
- * List of sort objects.
147
- * @maxSize 5
148
- */
149
- sort?: Sorting[];
150
- }
151
- /** @oneof */
152
- interface CursorQueryPagingMethodOneOf {
153
- /** 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`. */
154
- cursorPaging?: CursorPaging;
155
- }
156
- interface Sorting {
157
- /**
158
- * Field to sort by.
159
- * @maxLength 512
160
- */
161
- fieldName?: string;
162
- /**
163
- * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
164
- *
165
- * Default: `ASC`
166
- */
167
- order?: SortOrder;
168
- }
169
- declare enum SortOrder {
170
- /** Ascending sort order. */
171
- ASC = "ASC",
172
- /** Descending sort order. */
173
- DESC = "DESC"
174
- }
175
- interface CursorPaging {
176
- /**
177
- * Maximum number of items to return.
178
- * @max 100
179
- */
180
- limit?: number | null;
181
- /**
182
- * Pointer to the next or previous page in the list of results.
183
- *
184
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
185
- * Not relevant for the first request.
186
- * @maxLength 16000
187
- */
188
- cursor?: string | null;
189
- }
190
- interface QueryProgramDefinitionsResponse {
191
- /** List of retrieved program definitions. */
192
- programDefinitions?: ProgramDefinition[];
193
- /** Metadata for the paginated results. */
194
- metadata?: CursorPagingMetadata;
195
- }
196
- interface CursorPagingMetadata {
197
- /** Number of items returned in the response. */
198
- count?: number | null;
199
- /** Cursor strings that point to the next page, previous page, or both. */
200
- cursors?: Cursors;
201
- /**
202
- * Whether there are more pages to retrieve following the current page.
203
- *
204
- * + `true`: Another page of results can be retrieved.
205
- * + `false`: This is the last page.
206
- */
207
- hasNext?: boolean | null;
208
- }
209
- interface Cursors {
210
- /**
211
- * Cursor string pointing to the next page in the list of results.
212
- * @maxLength 16000
213
- */
214
- next?: string | null;
215
- /**
216
- * Cursor pointing to the previous page in the list of results.
217
- * @maxLength 16000
218
- */
219
- prev?: string | null;
220
- }
221
-
222
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
223
- getUrl: (context: any) => string;
224
- httpMethod: K;
225
- path: string;
226
- pathParams: M;
227
- __requestType: T;
228
- __originalRequestType: S;
229
- __responseType: Q;
230
- __originalResponseType: R;
231
- };
232
- declare function createProgramDefinition(): __PublicMethodMetaInfo<'POST', {}, CreateProgramDefinitionRequest$1, CreateProgramDefinitionRequest, CreateProgramDefinitionResponse$1, CreateProgramDefinitionResponse>;
233
- declare function updateProgramDefinition(): __PublicMethodMetaInfo<'PATCH', {
234
- programDefinitionId: string;
235
- }, UpdateProgramDefinitionRequest$1, UpdateProgramDefinitionRequest, UpdateProgramDefinitionResponse$1, UpdateProgramDefinitionResponse>;
236
- declare function deleteProgramDefinition(): __PublicMethodMetaInfo<'DELETE', {
237
- programDefinitionId: string;
238
- }, DeleteProgramDefinitionRequest$1, DeleteProgramDefinitionRequest, DeleteProgramDefinitionResponse$1, DeleteProgramDefinitionResponse>;
239
- declare function getProgramDefinition(): __PublicMethodMetaInfo<'GET', {
240
- programDefinitionId: string;
241
- }, GetProgramDefinitionRequest$1, GetProgramDefinitionRequest, GetProgramDefinitionResponse$1, GetProgramDefinitionResponse>;
242
- declare function getProgramDefinitionByExternalIdAndNamespace(): __PublicMethodMetaInfo<'GET', {}, GetProgramDefinitionByExternalIdAndNamespaceRequest$1, GetProgramDefinitionByExternalIdAndNamespaceRequest, GetProgramDefinitionByExternalIdAndNamespaceResponse$1, GetProgramDefinitionByExternalIdAndNamespaceResponse>;
243
- declare function queryProgramDefinitions(): __PublicMethodMetaInfo<'POST', {}, QueryProgramDefinitionsRequest$1, QueryProgramDefinitionsRequest, QueryProgramDefinitionsResponse$1, QueryProgramDefinitionsResponse>;
244
-
245
- export { type __PublicMethodMetaInfo, createProgramDefinition, deleteProgramDefinition, getProgramDefinition, getProgramDefinitionByExternalIdAndNamespace, queryProgramDefinitions, updateProgramDefinition };
package/build/meta.d.ts DELETED
@@ -1,245 +0,0 @@
1
- import { c as CreateProgramDefinitionRequest$1, d as CreateProgramDefinitionResponse$1, e as UpdateProgramDefinitionRequest$1, f as UpdateProgramDefinitionResponse$1, g as DeleteProgramDefinitionRequest$1, h as DeleteProgramDefinitionResponse$1, i as GetProgramDefinitionRequest$1, j as GetProgramDefinitionResponse$1, k as GetProgramDefinitionByExternalIdAndNamespaceRequest$1, a as GetProgramDefinitionByExternalIdAndNamespaceResponse$1, Q as QueryProgramDefinitionsRequest$1, p as QueryProgramDefinitionsResponse$1 } from './benefit-programs-v1-program-definition-program-definitions.universal-u-PVpH8k.js';
2
-
3
- interface ProgramDefinition {
4
- /**
5
- * Program definition ID.
6
- * @format GUID
7
- * @immutable
8
- * @readonly
9
- */
10
- id?: string | null;
11
- /**
12
- * Revision number, which increments by 1 each time the program definition is updated.
13
- * To prevent conflicting changes, the current revision must be passed when updating the program definition.
14
- *
15
- * Ignored when creating a program definition.
16
- * @readonly
17
- */
18
- revision?: string | null;
19
- /**
20
- * Date and time the program definition was created.
21
- * @readonly
22
- */
23
- createdDate?: Date | null;
24
- /**
25
- * Date and time the program definition was updated.
26
- * @readonly
27
- */
28
- updatedDate?: Date | null;
29
- /**
30
- * Program definition name.
31
- * @maxLength 64
32
- */
33
- displayName?: string | null;
34
- /**
35
- * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
36
- * @immutable
37
- * @readonly
38
- * @minLength 1
39
- * @maxLength 50
40
- */
41
- namespace?: string | null;
42
- /**
43
- * Custom field data for the program definition object.
44
- *
45
- * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
46
- */
47
- extendedFields?: ExtendedFields;
48
- /**
49
- * ID for the program definition defined by you. You can use `externalId` to filter queries.
50
- * @format GUID
51
- * @immutable
52
- * @readonly
53
- */
54
- externalId?: string | null;
55
- }
56
- interface ExtendedFields {
57
- /**
58
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
59
- * The value of each key is structured according to the schema defined when the extended fields were configured.
60
- *
61
- * You can only access fields for which you have the appropriate permissions.
62
- *
63
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
64
- */
65
- namespaces?: Record<string, Record<string, any>>;
66
- }
67
- interface CreateProgramDefinitionRequest {
68
- /** Program definition to create. */
69
- programDefinition: ProgramDefinition;
70
- }
71
- interface CreateProgramDefinitionResponse {
72
- /** Created program definition. */
73
- programDefinition?: ProgramDefinition;
74
- }
75
- interface UpdateProgramDefinitionRequest {
76
- /** Program definition to update. */
77
- programDefinition: ProgramDefinition;
78
- }
79
- interface UpdateProgramDefinitionResponse {
80
- /** Updated program definition. */
81
- programDefinition?: ProgramDefinition;
82
- }
83
- interface DeleteProgramDefinitionRequest {
84
- /**
85
- * ID of the program definition to delete.
86
- * @format GUID
87
- */
88
- programDefinitionId: string;
89
- /** Determines when the changes to this program definition will be applied to associated programs and pools. */
90
- cascadeType?: Cascade;
91
- }
92
- declare enum Cascade {
93
- /** Unknown cascade. */
94
- UNKNOWN_CASCADE = "UNKNOWN_CASCADE",
95
- /** Changes are applied to existing programs and pools when they are next renewed. */
96
- NEXT_RENEWAL = "NEXT_RENEWAL",
97
- /** Changes are applied to associated programs and pools immediately. */
98
- IMMEDIATELY = "IMMEDIATELY",
99
- /** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
100
- FUTURE_PROVISIONS = "FUTURE_PROVISIONS"
101
- }
102
- interface DeleteProgramDefinitionResponse {
103
- }
104
- interface GetProgramDefinitionRequest {
105
- /**
106
- * ID of the program definition to retrieve.
107
- * @format GUID
108
- */
109
- programDefinitionId: string;
110
- }
111
- interface GetProgramDefinitionResponse {
112
- /** Retrieved program definition. */
113
- programDefinition?: ProgramDefinition;
114
- }
115
- interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
116
- /**
117
- * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
118
- * @minLength 1
119
- * @maxLength 50
120
- */
121
- namespace: string;
122
- /**
123
- * Program definition external ID.
124
- * @format GUID
125
- */
126
- externalId: string;
127
- }
128
- interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
129
- /** Retrieved program definition. */
130
- programDefinition?: ProgramDefinition;
131
- }
132
- interface QueryProgramDefinitionsRequest {
133
- /** Filter, sort, and paging to apply to the query. */
134
- query?: CursorQuery;
135
- }
136
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
137
- /** 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`. */
138
- cursorPaging?: CursorPaging;
139
- /**
140
- * Filter object.
141
- * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
142
- * for more information.
143
- */
144
- filter?: Record<string, any> | null;
145
- /**
146
- * List of sort objects.
147
- * @maxSize 5
148
- */
149
- sort?: Sorting[];
150
- }
151
- /** @oneof */
152
- interface CursorQueryPagingMethodOneOf {
153
- /** 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`. */
154
- cursorPaging?: CursorPaging;
155
- }
156
- interface Sorting {
157
- /**
158
- * Field to sort by.
159
- * @maxLength 512
160
- */
161
- fieldName?: string;
162
- /**
163
- * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
164
- *
165
- * Default: `ASC`
166
- */
167
- order?: SortOrder;
168
- }
169
- declare enum SortOrder {
170
- /** Ascending sort order. */
171
- ASC = "ASC",
172
- /** Descending sort order. */
173
- DESC = "DESC"
174
- }
175
- interface CursorPaging {
176
- /**
177
- * Maximum number of items to return.
178
- * @max 100
179
- */
180
- limit?: number | null;
181
- /**
182
- * Pointer to the next or previous page in the list of results.
183
- *
184
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
185
- * Not relevant for the first request.
186
- * @maxLength 16000
187
- */
188
- cursor?: string | null;
189
- }
190
- interface QueryProgramDefinitionsResponse {
191
- /** List of retrieved program definitions. */
192
- programDefinitions?: ProgramDefinition[];
193
- /** Metadata for the paginated results. */
194
- metadata?: CursorPagingMetadata;
195
- }
196
- interface CursorPagingMetadata {
197
- /** Number of items returned in the response. */
198
- count?: number | null;
199
- /** Cursor strings that point to the next page, previous page, or both. */
200
- cursors?: Cursors;
201
- /**
202
- * Whether there are more pages to retrieve following the current page.
203
- *
204
- * + `true`: Another page of results can be retrieved.
205
- * + `false`: This is the last page.
206
- */
207
- hasNext?: boolean | null;
208
- }
209
- interface Cursors {
210
- /**
211
- * Cursor string pointing to the next page in the list of results.
212
- * @maxLength 16000
213
- */
214
- next?: string | null;
215
- /**
216
- * Cursor pointing to the previous page in the list of results.
217
- * @maxLength 16000
218
- */
219
- prev?: string | null;
220
- }
221
-
222
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
223
- getUrl: (context: any) => string;
224
- httpMethod: K;
225
- path: string;
226
- pathParams: M;
227
- __requestType: T;
228
- __originalRequestType: S;
229
- __responseType: Q;
230
- __originalResponseType: R;
231
- };
232
- declare function createProgramDefinition(): __PublicMethodMetaInfo<'POST', {}, CreateProgramDefinitionRequest$1, CreateProgramDefinitionRequest, CreateProgramDefinitionResponse$1, CreateProgramDefinitionResponse>;
233
- declare function updateProgramDefinition(): __PublicMethodMetaInfo<'PATCH', {
234
- programDefinitionId: string;
235
- }, UpdateProgramDefinitionRequest$1, UpdateProgramDefinitionRequest, UpdateProgramDefinitionResponse$1, UpdateProgramDefinitionResponse>;
236
- declare function deleteProgramDefinition(): __PublicMethodMetaInfo<'DELETE', {
237
- programDefinitionId: string;
238
- }, DeleteProgramDefinitionRequest$1, DeleteProgramDefinitionRequest, DeleteProgramDefinitionResponse$1, DeleteProgramDefinitionResponse>;
239
- declare function getProgramDefinition(): __PublicMethodMetaInfo<'GET', {
240
- programDefinitionId: string;
241
- }, GetProgramDefinitionRequest$1, GetProgramDefinitionRequest, GetProgramDefinitionResponse$1, GetProgramDefinitionResponse>;
242
- declare function getProgramDefinitionByExternalIdAndNamespace(): __PublicMethodMetaInfo<'GET', {}, GetProgramDefinitionByExternalIdAndNamespaceRequest$1, GetProgramDefinitionByExternalIdAndNamespaceRequest, GetProgramDefinitionByExternalIdAndNamespaceResponse$1, GetProgramDefinitionByExternalIdAndNamespaceResponse>;
243
- declare function queryProgramDefinitions(): __PublicMethodMetaInfo<'POST', {}, QueryProgramDefinitionsRequest$1, QueryProgramDefinitionsRequest, QueryProgramDefinitionsResponse$1, QueryProgramDefinitionsResponse>;
244
-
245
- export { type __PublicMethodMetaInfo, createProgramDefinition, deleteProgramDefinition, getProgramDefinition, getProgramDefinitionByExternalIdAndNamespace, queryProgramDefinitions, updateProgramDefinition };