@wix/online-programs 1.0.37 → 1.0.39

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 (69) hide show
  1. package/build/cjs/index.d.ts +24 -1
  2. package/build/cjs/index.js +59 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +16 -1
  5. package/build/cjs/meta.js +59 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/es/index.d.mts +24 -0
  8. package/build/es/index.mjs +20 -0
  9. package/build/es/index.mjs.map +1 -0
  10. package/build/es/meta.d.mts +16 -0
  11. package/build/es/meta.mjs +20 -0
  12. package/build/es/meta.mjs.map +1 -0
  13. package/build/es/package.json +3 -0
  14. package/build/internal/cjs/index.d.ts +24 -0
  15. package/build/internal/cjs/index.js +62 -0
  16. package/build/internal/cjs/index.js.map +1 -0
  17. package/build/internal/cjs/meta.d.ts +16 -0
  18. package/build/internal/cjs/meta.js +62 -0
  19. package/build/internal/cjs/meta.js.map +1 -0
  20. package/build/internal/es/index.d.mts +24 -0
  21. package/build/internal/es/index.mjs +20 -0
  22. package/build/internal/es/index.mjs.map +1 -0
  23. package/build/internal/es/meta.d.mts +16 -0
  24. package/build/internal/es/meta.mjs +20 -0
  25. package/build/internal/es/meta.mjs.map +1 -0
  26. package/meta/package.json +1 -4
  27. package/package.json +41 -13
  28. package/build/cjs/index.typings.d.ts +0 -1
  29. package/build/cjs/index.typings.js +0 -18
  30. package/build/cjs/index.typings.js.map +0 -1
  31. package/build/cjs/src/challenges-v1-participant.http.d.ts +0 -7
  32. package/build/cjs/src/challenges-v1-participant.http.js +0 -225
  33. package/build/cjs/src/challenges-v1-participant.http.js.map +0 -1
  34. package/build/cjs/src/challenges-v1-participant.meta.d.ts +0 -21
  35. package/build/cjs/src/challenges-v1-participant.meta.js +0 -85
  36. package/build/cjs/src/challenges-v1-participant.meta.js.map +0 -1
  37. package/build/cjs/src/challenges-v1-participant.public.d.ts +0 -10
  38. package/build/cjs/src/challenges-v1-participant.public.js +0 -39
  39. package/build/cjs/src/challenges-v1-participant.public.js.map +0 -1
  40. package/build/cjs/src/challenges-v1-participant.types.d.ts +0 -1083
  41. package/build/cjs/src/challenges-v1-participant.types.js +0 -111
  42. package/build/cjs/src/challenges-v1-participant.types.js.map +0 -1
  43. package/build/cjs/src/challenges-v1-participant.universal.d.ts +0 -1031
  44. package/build/cjs/src/challenges-v1-participant.universal.js +0 -349
  45. package/build/cjs/src/challenges-v1-participant.universal.js.map +0 -1
  46. package/build/es/index.d.ts +0 -1
  47. package/build/es/index.js +0 -2
  48. package/build/es/index.js.map +0 -1
  49. package/build/es/index.typings.d.ts +0 -1
  50. package/build/es/index.typings.js +0 -2
  51. package/build/es/index.typings.js.map +0 -1
  52. package/build/es/meta.d.ts +0 -1
  53. package/build/es/meta.js +0 -2
  54. package/build/es/meta.js.map +0 -1
  55. package/build/es/src/challenges-v1-participant.http.d.ts +0 -7
  56. package/build/es/src/challenges-v1-participant.http.js +0 -219
  57. package/build/es/src/challenges-v1-participant.http.js.map +0 -1
  58. package/build/es/src/challenges-v1-participant.meta.d.ts +0 -21
  59. package/build/es/src/challenges-v1-participant.meta.js +0 -56
  60. package/build/es/src/challenges-v1-participant.meta.js.map +0 -1
  61. package/build/es/src/challenges-v1-participant.public.d.ts +0 -10
  62. package/build/es/src/challenges-v1-participant.public.js +0 -19
  63. package/build/es/src/challenges-v1-participant.public.js.map +0 -1
  64. package/build/es/src/challenges-v1-participant.types.d.ts +0 -1083
  65. package/build/es/src/challenges-v1-participant.types.js +0 -108
  66. package/build/es/src/challenges-v1-participant.types.js.map +0 -1
  67. package/build/es/src/challenges-v1-participant.universal.d.ts +0 -1031
  68. package/build/es/src/challenges-v1-participant.universal.js +0 -320
  69. package/build/es/src/challenges-v1-participant.universal.js.map +0 -1
package/package.json CHANGED
@@ -1,37 +1,65 @@
1
1
  {
2
2
  "name": "@wix/online-programs",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
+ "license": "MIT",
4
5
  "publishConfig": {
5
6
  "registry": "https://registry.npmjs.org/",
6
7
  "access": "public"
7
8
  },
9
+ "keywords": [
10
+ "wixSdkBackendModule",
11
+ "wixSdkPageModule",
12
+ "wixSdkPublicModule"
13
+ ],
8
14
  "sideEffects": false,
9
- "module": "build/es/index.js",
10
- "main": "build/cjs/index.js",
11
- "typings": "./build/cjs/index.d.ts",
15
+ "main": "./build/cjs/index.js",
16
+ "types": "./build/cjs/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "import": "./build/es/index.mjs",
20
+ "require": "./build/cjs/index.js",
21
+ "types": "./build/es/index.d.mts"
22
+ },
23
+ "./package.json": "./package.json",
24
+ "./meta": {
25
+ "import": "./build/es/meta.mjs",
26
+ "require": "./build/cjs/meta.js",
27
+ "types": "./build/es/meta.d.mts"
28
+ }
29
+ },
12
30
  "files": [
13
31
  "build",
14
- "frontend/package.json",
15
- "meta"
32
+ "meta",
33
+ "service-plugins"
16
34
  ],
17
35
  "dependencies": {
18
- "@wix/metro-runtime": "^1.1528.0",
19
- "@wix/sdk-types": "^1.5.3",
20
- "@wix/sdk-runtime": "^0.2.7",
21
- "@wix/motion-edm-autogen-query-wrapper": "^1.0.37"
36
+ "@wix/auto_sdk_online-programs_categories": "1.0.0",
37
+ "@wix/auto_sdk_online-programs_instructors": "1.0.0",
38
+ "@wix/auto_sdk_online-programs_online-program-participants": "1.0.0",
39
+ "@wix/auto_sdk_online-programs_participants": "1.0.0",
40
+ "@wix/auto_sdk_online-programs_programs": "1.0.1",
41
+ "@wix/auto_sdk_online-programs_quizzes": "1.0.0",
42
+ "@wix/auto_sdk_online-programs_sections": "1.0.0",
43
+ "@wix/auto_sdk_online-programs_steps": "1.0.0"
22
44
  },
23
45
  "devDependencies": {
46
+ "tsup": "^8.4.0",
24
47
  "typescript": "^5.3.2"
25
48
  },
26
49
  "scripts": {
27
- "build": "tsc -b tsconfig.json tsconfig.esm.json",
50
+ "build": "tsup",
28
51
  "test": ":"
29
52
  },
30
53
  "wix": {
31
54
  "artifact": {
55
+ "groupId": "com.wixpress.public-sdk-autogen",
32
56
  "artifactId": "online-programs-public-sdk-autogen",
33
- "groupId": "com.wixpress.public-sdk-autogen"
57
+ "isRootPublicSdk": true
58
+ },
59
+ "sdkDependency": {
60
+ "fqdnNamespace": "",
61
+ "fqdn": ""
34
62
  }
35
63
  },
36
- "falconPackageHash": "d5ac5aac2ae0c9d1ef28f524757e4f858fab11ae616630c131868fa0"
64
+ "falconPackageHash": "415c710eddca217c243d6977df12152bbd54e81cd43c98638b44df04"
37
65
  }
@@ -1 +0,0 @@
1
- export * from './src/challenges-v1-participant.universal';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/challenges-v1-participant.universal"), exports);
18
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4EAA0D"}
@@ -1,7 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { AddParticipantRequest, AddParticipantResponse, AddAllParticipantRequest, AddAllParticipantResponse, AddParticipantResponseNonNullableFields, AddParticipantsRequest, AddParticipantsResponse, AddParticipantsResponseNonNullableFields } from './challenges-v1-participant.types';
3
- /** owner adds participant to the challenge */
4
- export declare function addParticipant(payload: AddParticipantRequest): RequestOptionsFactory<AddParticipantResponse & AddParticipantResponseNonNullableFields>;
5
- /** owner adds participants to the challenge */
6
- export declare function addParticipants(payload: AddParticipantsRequest): RequestOptionsFactory<AddParticipantsResponse & AddParticipantsResponseNonNullableFields>;
7
- export declare function addAllParticipant(payload: AddAllParticipantRequest): RequestOptionsFactory<AddAllParticipantResponse>;
@@ -1,225 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addAllParticipant = exports.addParticipants = exports.addParticipant = void 0;
4
- const float_1 = require("@wix/sdk-runtime/transformations/float");
5
- const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
6
- const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
7
- const metro_runtime_1 = require("@wix/metro-runtime");
8
- function resolveComWixpressAchievementsApiV1ParticipantsServiceUrl(opts) {
9
- const domainToMappings = {
10
- 'api._api_base_domain_': [
11
- {
12
- srcPath: '/challenge-service-web',
13
- destPath: '',
14
- },
15
- {
16
- srcPath: '/_api/challenge-service-web/api/v2',
17
- destPath: '/v2',
18
- },
19
- ],
20
- 'www._base_domain_': [
21
- {
22
- srcPath: '/_api/challenge-service-web',
23
- destPath: '',
24
- },
25
- {
26
- srcPath: '/challenges/api/v1',
27
- destPath: '/api/v1',
28
- },
29
- {
30
- srcPath: '/_api/challenge-service-web/api/v2',
31
- destPath: '/v2',
32
- },
33
- ],
34
- _: [
35
- {
36
- srcPath: '/_api/challenge-service-web',
37
- destPath: '',
38
- },
39
- {
40
- srcPath: '/challenges/api/v1',
41
- destPath: '/api/v1',
42
- },
43
- {
44
- srcPath: '/_api/challenge-service-web/api/v2',
45
- destPath: '/v2',
46
- },
47
- ],
48
- 'challenges.wixapps.net': [
49
- {
50
- srcPath: '/challenge-service-web/api',
51
- destPath: '',
52
- },
53
- {
54
- srcPath: '/challenge-service-web/api/v1',
55
- destPath: '/api/v1',
56
- },
57
- {
58
- srcPath: '/api/v1',
59
- destPath: '/api/v1',
60
- },
61
- ],
62
- 'manage._base_domain_': [
63
- {
64
- srcPath: '/_api/challenge-service-web',
65
- destPath: '',
66
- },
67
- {
68
- srcPath: '/_api/challenge-service-web/api/v2',
69
- destPath: '/v2',
70
- },
71
- ],
72
- 'editor-flow.wixapps.net': [
73
- {
74
- srcPath: '/_api/challenge-service-web',
75
- destPath: '',
76
- },
77
- ],
78
- 'editor.wixapps.net': [
79
- {
80
- srcPath: '/_api/challenge-service-web',
81
- destPath: '',
82
- },
83
- ],
84
- '*.dev.wix-code.com': [
85
- {
86
- srcPath: '/_api/challenge-service-web',
87
- destPath: '',
88
- },
89
- {
90
- srcPath: '/challenge-service-web/api/v1',
91
- destPath: '/api/v1',
92
- },
93
- {
94
- srcPath: '/_api/challenge-service-web/api/v2',
95
- destPath: '/v2',
96
- },
97
- ],
98
- 'editor._base_domain_': [
99
- {
100
- srcPath: '/_api/challenge-service-web',
101
- destPath: '',
102
- },
103
- ],
104
- 'blocks._base_domain_': [
105
- {
106
- srcPath: '/_api/challenge-service-web',
107
- destPath: '',
108
- },
109
- ],
110
- 'create.editorx': [
111
- {
112
- srcPath: '/_api/challenge-service-web',
113
- destPath: '',
114
- },
115
- ],
116
- };
117
- return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
118
- }
119
- /** owner adds participant to the challenge */
120
- function addParticipant(payload) {
121
- function __addParticipant({ host }) {
122
- const metadata = {
123
- entityFqdn: 'wix.challenges.v1.participant',
124
- method: 'POST',
125
- methodFqn: 'com.wixpress.achievements.api.v1.ParticipantsService.AddParticipant',
126
- url: resolveComWixpressAchievementsApiV1ParticipantsServiceUrl({
127
- protoPath: '/api/v1/participants/{challengeId}/add',
128
- data: payload,
129
- host,
130
- }),
131
- data: payload,
132
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
133
- {
134
- transformFn: float_1.transformRESTFloatToSDKFloat,
135
- paths: [{ path: 'participant.performance' }],
136
- },
137
- {
138
- transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
139
- paths: [
140
- { path: 'participant.challenge.media.image.urlExpirationDate' },
141
- {
142
- path: 'participant.challenge.media.video.thumbnail.urlExpirationDate',
143
- },
144
- {
145
- path: 'participant.challenge.media.document.urlExpirationDate',
146
- },
147
- { path: 'participant.timeFrame.start' },
148
- { path: 'participant.timeFrame.finish' },
149
- {
150
- path: 'participant.stepsSummary.lastEvent.transition.occurredAt',
151
- },
152
- { path: 'participant.transitions.occurredAt' },
153
- { path: 'participant.certificate.issuedDate' },
154
- ],
155
- },
156
- ]),
157
- };
158
- return metadata;
159
- }
160
- return __addParticipant;
161
- }
162
- exports.addParticipant = addParticipant;
163
- /** owner adds participants to the challenge */
164
- function addParticipants(payload) {
165
- function __addParticipants({ host }) {
166
- const metadata = {
167
- entityFqdn: 'wix.challenges.v1.participant',
168
- method: 'POST',
169
- methodFqn: 'com.wixpress.achievements.api.v1.ParticipantsService.AddParticipants',
170
- url: resolveComWixpressAchievementsApiV1ParticipantsServiceUrl({
171
- protoPath: '/api/v1/participants/{challengeId}/bulk-add',
172
- data: payload,
173
- host,
174
- }),
175
- data: payload,
176
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
177
- {
178
- transformFn: float_1.transformRESTFloatToSDKFloat,
179
- paths: [{ path: 'participants.performance' }],
180
- },
181
- {
182
- transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
183
- paths: [
184
- { path: 'participants.challenge.media.image.urlExpirationDate' },
185
- {
186
- path: 'participants.challenge.media.video.thumbnail.urlExpirationDate',
187
- },
188
- {
189
- path: 'participants.challenge.media.document.urlExpirationDate',
190
- },
191
- { path: 'participants.timeFrame.start' },
192
- { path: 'participants.timeFrame.finish' },
193
- {
194
- path: 'participants.stepsSummary.lastEvent.transition.occurredAt',
195
- },
196
- { path: 'participants.transitions.occurredAt' },
197
- { path: 'participants.certificate.issuedDate' },
198
- ],
199
- },
200
- ]),
201
- };
202
- return metadata;
203
- }
204
- return __addParticipants;
205
- }
206
- exports.addParticipants = addParticipants;
207
- function addAllParticipant(payload) {
208
- function __addAllParticipant({ host }) {
209
- const metadata = {
210
- entityFqdn: 'wix.challenges.v1.participant',
211
- method: 'POST',
212
- methodFqn: 'com.wixpress.achievements.api.v1.ParticipantsService.AddAllParticipant',
213
- url: resolveComWixpressAchievementsApiV1ParticipantsServiceUrl({
214
- protoPath: '/api/v1/participants/{challengeId}/add-all',
215
- data: payload,
216
- host,
217
- }),
218
- data: payload,
219
- };
220
- return metadata;
221
- }
222
- return __addAllParticipant;
223
- }
224
- exports.addAllParticipant = addAllParticipant;
225
- //# sourceMappingURL=challenges-v1-participant.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"challenges-v1-participant.http.js","sourceRoot":"","sources":["../../../src/challenges-v1-participant.http.ts"],"names":[],"mappings":";;;AAAA,kEAAsF;AACtF,0EAAkG;AAClG,sFAAkF;AAClF,sDAAgD;AAchD,SAAS,yDAAyD,CAChE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,SAAS;aACpB;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,SAAS;aACpB;YAC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allengesV1ParticipantTypes from './challenges-v1-participant.types';
2
- import * as ambassadorWixChallengesV1ParticipantUniversalTypes from './challenges-v1-participant.universal';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function addParticipant(): __PublicMethodMetaInfo<'POST', {
14
- challengeId: string;
15
- }, ambassadorWixChallengesV1ParticipantUniversalTypes.AddParticipantRequest, ambassadorWixChallengesV1ParticipantTypes.AddParticipantRequest, ambassadorWixChallengesV1ParticipantUniversalTypes.AddParticipantResponse & ambassadorWixChallengesV1ParticipantUniversalTypes.AddParticipantResponseNonNullableFields, ambassadorWixChallengesV1ParticipantTypes.AddParticipantResponse & ambassadorWixChallengesV1ParticipantTypes.AddParticipantResponseNonNullableFields>;
16
- export declare function addParticipants(): __PublicMethodMetaInfo<'POST', {
17
- challengeId: string;
18
- }, ambassadorWixChallengesV1ParticipantUniversalTypes.AddParticipantsRequest, ambassadorWixChallengesV1ParticipantTypes.AddParticipantsRequest, ambassadorWixChallengesV1ParticipantUniversalTypes.AddParticipantsResponse & ambassadorWixChallengesV1ParticipantUniversalTypes.AddParticipantsResponseNonNullableFields, ambassadorWixChallengesV1ParticipantTypes.AddParticipantsResponse & ambassadorWixChallengesV1ParticipantTypes.AddParticipantsResponseNonNullableFields>;
19
- export declare function addAllParticipant(): __PublicMethodMetaInfo<'POST', {
20
- challengeId: string;
21
- }, ambassadorWixChallengesV1ParticipantUniversalTypes.AddAllParticipantRequest, ambassadorWixChallengesV1ParticipantTypes.AddAllParticipantRequest, ambassadorWixChallengesV1ParticipantUniversalTypes.AddAllParticipantResponse, ambassadorWixChallengesV1ParticipantTypes.AddAllParticipantResponse>;
@@ -1,85 +0,0 @@
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.addAllParticipant = exports.addParticipants = exports.addParticipant = void 0;
27
- const ambassadorWixChallengesV1Participant = __importStar(require("./challenges-v1-participant.http"));
28
- function addParticipant() {
29
- const payload = { challengeId: ':challengeId' };
30
- const getRequestOptions = ambassadorWixChallengesV1Participant.addParticipant(payload);
31
- const getUrl = (context) => {
32
- const { url } = getRequestOptions(context);
33
- return url;
34
- };
35
- return {
36
- getUrl,
37
- httpMethod: 'POST',
38
- path: '/api/v1/participants/{challengeId}/add',
39
- pathParams: { challengeId: 'challengeId' },
40
- __requestType: null,
41
- __originalRequestType: null,
42
- __responseType: null,
43
- __originalResponseType: null,
44
- };
45
- }
46
- exports.addParticipant = addParticipant;
47
- function addParticipants() {
48
- const payload = { challengeId: ':challengeId' };
49
- const getRequestOptions = ambassadorWixChallengesV1Participant.addParticipants(payload);
50
- const getUrl = (context) => {
51
- const { url } = getRequestOptions(context);
52
- return url;
53
- };
54
- return {
55
- getUrl,
56
- httpMethod: 'POST',
57
- path: '/api/v1/participants/{challengeId}/bulk-add',
58
- pathParams: { challengeId: 'challengeId' },
59
- __requestType: null,
60
- __originalRequestType: null,
61
- __responseType: null,
62
- __originalResponseType: null,
63
- };
64
- }
65
- exports.addParticipants = addParticipants;
66
- function addAllParticipant() {
67
- const payload = { challengeId: ':challengeId' };
68
- const getRequestOptions = ambassadorWixChallengesV1Participant.addAllParticipant(payload);
69
- const getUrl = (context) => {
70
- const { url } = getRequestOptions(context);
71
- return url;
72
- };
73
- return {
74
- getUrl,
75
- httpMethod: 'POST',
76
- path: '/api/v1/participants/{challengeId}/add-all',
77
- pathParams: { challengeId: 'challengeId' },
78
- __requestType: null,
79
- __originalRequestType: null,
80
- __responseType: null,
81
- __originalResponseType: null,
82
- };
83
- }
84
- exports.addAllParticipant = addAllParticipant;
85
- //# sourceMappingURL=challenges-v1-participant.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"challenges-v1-participant.meta.js","sourceRoot":"","sources":["../../../src/challenges-v1-participant.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uGAAyF;AAsBzF,SAAgB,cAAc;IAU5B,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE,cAAc,EAAS,CAAC;IAEvD,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAE/D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,wCAAwC;QAC9C,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;QAC1C,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CA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dk-types';
2
- import { AddAllParticipantOptions, AddParticipantOptions, AddParticipantsOptions } from './challenges-v1-participant.universal';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function addParticipant(httpClient: HttpClient): (challengeId: string, options?: AddParticipantOptions) => Promise<import("./challenges-v1-participant.universal").AddParticipantResponse & import("./challenges-v1-participant.universal").AddParticipantResponseNonNullableFields>;
7
- export declare function addParticipants(httpClient: HttpClient): (challengeId: string, options?: AddParticipantsOptions) => Promise<import("./challenges-v1-participant.universal").AddParticipantsResponse & import("./challenges-v1-participant.universal").AddParticipantsResponseNonNullableFields>;
8
- export declare function addAllParticipant(httpClient: HttpClient): (challengeId: string, options?: AddAllParticipantOptions) => Promise<void>;
9
- export { ParticipantStepState, State, ParticipationState, QueryParticipantsRequestJoinPath, QueryParticipantsRequestSortingCriterion, QueryParticipantsRequestSortingOrder, SortingCriterion, SortingOrder, PaymentType, DescriptionFieldSet, ChoiceRightness, QuizType, DurationUnit, ResolutionStatus, } from './challenges-v1-participant.universal';
10
- export { Participant, StepEvent, ParticipantStepStateTransition, Free, Added, SinglePayment, PaidPlan, FreeCoupon, Member, EntitySummary, MediaItem, MediaItemMediaOneOf, TimeInterval, StepsSummary, StateTransition, DateInterval, JoinPath, JoinPathPathOneOf, Certificate, QueryParticipantsRequest, ParticipantJoinDate, ParticipantPerformance, Paging, QueryParticipantsRequestSorting, ParticipantsFilter, QueryParticipantsResponse, ListParticipantsRequest, Sorting, ListParticipantsResponse, JoinParticipantRequest, JoinParticipantResponse, ParticipantJoined, AddParticipantRequest, AddParticipantResponse, AddParticipantsRequest, AddParticipantsResponse, AddAllParticipantRequest, AddAllParticipantResponse, CreateJoinRequestRequest, CreateJoinRequestResponse, InviteParticipantsRequest, InviteParticipantsResponse, InvitationDetails, InviteAllParticipantsRequest, InviteAllParticipantsResponse, GetParticipantRequest, GetParticipantResponse, UpdateParticipantRequest, UpdateParticipantRequestUpdateOneOf, UpdateParticipantResponse, DeleteParticipantRequest, DeleteParticipantResponse, ReviveParticipantRequest, ReviveParticipantResponse, ResetParticipantProgressRequest, ResetParticipantProgressResponse, IssueParticipantCertificateRequest, IssueParticipantCertificateResponse, IssueCertificateRequest, IssueCertificateResponse, GetCertificateRequest, GetCertificateResponse, CreatePaymentOrderRequest, CreatePaymentOrderResponse, ApplyCouponToOrderRequest, ApplyCouponToOrderResponse, RemoveCouponFromOrderRequest, RemoveCouponFromOrderResponse, ListParticipantStepsRequest, ListParticipantStepsResponse, ParticipantStep, FeedbackItem, FeedbackItemValueOneOf, MediaItems, FeedbackItemChoice, Quantity, Choices, ChallengeStep, GeneralSettings, GeneralSettingsStepTypeOneOf, ObjectDescription, IndividualSettings, FeedbackItemSettings, NumericFeedbackItem, TextFeedbackItem, MediaFeedbackItem, MultipleChoiceFeedbackItem, Choice, QuantityFeedbackItem, FeedbackItemType, FeedbackItemTypeTypeOneOf, GroupSettings, CompletionCriteria, QuantityCriterion, QuantityCriterionCriterionOneOf, All, MinThreshold, QuizSettings, QuizMigrationDetails, TimeDuration, RecurrenceSettings, RecurrenceSchedule, EmbeddingSettings, StartCondition, StepDependency, StepDependencyDependencyTypeOneOf, Container, Step, ChallengeStepSettings, Feedback, QuizSubmission, GetParticipantStepRequest, GetParticipantStepResponse, ResolveParticipantStepRequest, ResolveParticipantStepResponse, StepResolved, UpdateStepFeedbackRequest, UpdateStepFeedbackResponse, GetMediaUploadInfoRequest, GetMediaUploadInfoResponse, ListParticipantSectionsRequest, ListParticipantSectionsResponse, ParticipantSection, WaitingDate, WaitingDependency, Running, Completed, Overdue, ChallengeSection, Settings, ParticipantSectionStateTransition, ParticipantSectionStateTransitionStateOneOf, Progress, GetParticipantSectionRequest, GetParticipantSectionResponse, MyProgramRequest, MyProgramResponse, MyProgramStepRequest, MyProgramStepResponse, MyProgramSectionRequest, MyProgramSectionResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, AddParticipantResponseNonNullableFields, AddParticipantsResponseNonNullableFields, AddParticipantOptions, AddParticipantsOptions, AddAllParticipantOptions, } from './challenges-v1-participant.universal';
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResolutionStatus = exports.DurationUnit = exports.QuizType = exports.ChoiceRightness = exports.DescriptionFieldSet = exports.PaymentType = exports.SortingOrder = exports.SortingCriterion = exports.QueryParticipantsRequestSortingOrder = exports.QueryParticipantsRequestSortingCriterion = exports.QueryParticipantsRequestJoinPath = exports.ParticipationState = exports.State = exports.ParticipantStepState = exports.addAllParticipant = exports.addParticipants = exports.addParticipant = exports.__metadata = void 0;
4
- const challenges_v1_participant_universal_1 = require("./challenges-v1-participant.universal");
5
- exports.__metadata = { PACKAGE_NAME: '@wix/online-programs' };
6
- function addParticipant(httpClient) {
7
- return (challengeId, options) => (0, challenges_v1_participant_universal_1.addParticipant)(challengeId, options,
8
- // @ts-ignore
9
- { httpClient });
10
- }
11
- exports.addParticipant = addParticipant;
12
- function addParticipants(httpClient) {
13
- return (challengeId, options) => (0, challenges_v1_participant_universal_1.addParticipants)(challengeId, options,
14
- // @ts-ignore
15
- { httpClient });
16
- }
17
- exports.addParticipants = addParticipants;
18
- function addAllParticipant(httpClient) {
19
- return (challengeId, options) => (0, challenges_v1_participant_universal_1.addAllParticipant)(challengeId, options,
20
- // @ts-ignore
21
- { httpClient });
22
- }
23
- exports.addAllParticipant = addAllParticipant;
24
- var challenges_v1_participant_universal_2 = require("./challenges-v1-participant.universal");
25
- Object.defineProperty(exports, "ParticipantStepState", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.ParticipantStepState; } });
26
- Object.defineProperty(exports, "State", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.State; } });
27
- Object.defineProperty(exports, "ParticipationState", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.ParticipationState; } });
28
- Object.defineProperty(exports, "QueryParticipantsRequestJoinPath", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.QueryParticipantsRequestJoinPath; } });
29
- Object.defineProperty(exports, "QueryParticipantsRequestSortingCriterion", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.QueryParticipantsRequestSortingCriterion; } });
30
- Object.defineProperty(exports, "QueryParticipantsRequestSortingOrder", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.QueryParticipantsRequestSortingOrder; } });
31
- Object.defineProperty(exports, "SortingCriterion", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.SortingCriterion; } });
32
- Object.defineProperty(exports, "SortingOrder", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.SortingOrder; } });
33
- Object.defineProperty(exports, "PaymentType", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.PaymentType; } });
34
- Object.defineProperty(exports, "DescriptionFieldSet", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.DescriptionFieldSet; } });
35
- Object.defineProperty(exports, "ChoiceRightness", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.ChoiceRightness; } });
36
- Object.defineProperty(exports, "QuizType", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.QuizType; } });
37
- Object.defineProperty(exports, "DurationUnit", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.DurationUnit; } });
38
- Object.defineProperty(exports, "ResolutionStatus", { enumerable: true, get: function () { return challenges_v1_participant_universal_2.ResolutionStatus; } });
39
- //# sourceMappingURL=challenges-v1-participant.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"challenges-v1-participant.public.js","sourceRoot":"","sources":["../../../src/challenges-v1-participant.public.ts"],"names":[],"mappings":";;;AACA,+FAO+C;AAElC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEnE,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,WAAmB,EAAE,OAA+B,EAAE,EAAE,CAC9D,IAAA,oDAAuB,EACrB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,eAAe,CAAC,UAAsB;IACpD,OAAO,CAAC,WAAmB,EAAE,OAAgC,EAAE,EAAE,CAC/D,IAAA,qDAAwB,EACtB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0CAQC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,WAAmB,EAAE,OAAkC,EAAE,EAAE,CACjE,IAAA,uDAA0B,EACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAED,6FAe+C;AAd7C,2IAAA,oBAAoB,OAAA;AACpB,4HAAA,KAAK,OAAA;AACL,yIAAA,kBAAkB,OAAA;AAClB,uJAAA,gCAAgC,OAAA;AAChC,+JAAA,wCAAwC,OAAA;AACxC,2JAAA,oCAAoC,OAAA;AACpC,uIAAA,gBAAgB,OAAA;AAChB,mIAAA,YAAY,OAAA;AACZ,kIAAA,WAAW,OAAA;AACX,0IAAA,mBAAmB,OAAA;AACnB,sIAAA,eAAe,OAAA;AACf,+HAAA,QAAQ,OAAA;AACR,mIAAA,YAAY,OAAA;AACZ,uIAAA,gBAAgB,OAAA"}