@wix/auto_sdk_online-programs_participants 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.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +187 -0
  2. package/build/cjs/index.js +1676 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1866 -0
  5. package/build/cjs/index.typings.js +1382 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +599 -0
  8. package/build/cjs/meta.js +1043 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +187 -0
  11. package/build/es/index.mjs +1612 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1866 -0
  14. package/build/es/index.typings.mjs +1325 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +599 -0
  17. package/build/es/meta.mjs +999 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +198 -0
  21. package/build/internal/cjs/index.js +1676 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +1876 -0
  24. package/build/internal/cjs/index.typings.js +1382 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +599 -0
  27. package/build/internal/cjs/meta.js +1043 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +198 -0
  30. package/build/internal/es/index.mjs +1612 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +1876 -0
  33. package/build/internal/es/index.typings.mjs +1325 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +599 -0
  36. package/build/internal/es/meta.mjs +999 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/online-programs-v3-participant-participants.http.ts","../../src/online-programs-v3-participant-participants.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/participants-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/participants-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/participants-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/participants-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_online-programs_participants';\n\n/**\n * Member joins the program. By the type of program, participant in corresponding\n * state will be created.\n */\nexport function joinProgram(payload: object): RequestOptionsFactory<any> {\n function __joinProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ParticipantsService.JoinProgram',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({\n protoPath: '/v3/participants/join',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participant.createdDate' },\n { path: 'participant.updatedDate' },\n { path: 'participant.certificate.issuedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'participant.progress.completionPercentage' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __joinProgram;\n}\n\n/** Returns participant. */\nexport function getParticipant(payload: object): RequestOptionsFactory<any> {\n function __getParticipant({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'GET' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({\n protoPath: '/v3/participants/{participantId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participant.createdDate' },\n { path: 'participant.updatedDate' },\n { path: 'participant.certificate.issuedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'participant.progress.completionPercentage' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getParticipant;\n}\n\n/** Participant leaves program. Entity will be deleted. Idempotent call. */\nexport function leaveProgram(payload: object): RequestOptionsFactory<any> {\n function __leaveProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ParticipantsService.LeaveProgram',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({\n protoPath: '/v3/participants/{participantId}/leave',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __leaveProgram;\n}\n\n/** Query existing participants */\nexport function queryParticipants(payload: object): RequestOptionsFactory<any> {\n function __queryParticipants({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({\n protoPath: '/v3/participants/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participants.createdDate' },\n { path: 'participants.updatedDate' },\n { path: 'participants.certificate.issuedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'participants.progress.completionPercentage' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryParticipants;\n}\n\n/** Get access status */\nexport function getAccessStatus(payload: object): RequestOptionsFactory<any> {\n function __getAccessStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'GET' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({\n protoPath: '/v3/participants/access',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getAccessStatus;\n}\n\n/** Apply coupon to order */\nexport function applyCoupon(payload: object): RequestOptionsFactory<any> {\n function __applyCoupon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ParticipantsService.ApplyCoupon',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({\n protoPath:\n '/v3/participants/{participantId}/coupons/{couponCode}/apply',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'subTotal' },\n { path: 'discount' },\n { path: 'total' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __applyCoupon;\n}\n\n/** Remove coupon from order */\nexport function revertCoupon(payload: object): RequestOptionsFactory<any> {\n function __revertCoupon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ParticipantsService.RevertCoupon',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({\n protoPath: '/v3/participants/{participantId}/coupons/{couponId}/revert',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'total' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __revertCoupon;\n}\n\n/**\n * Bulk invites participants to program.\n * For each member participant in Invited state is created.\n */\nexport function bulkInviteToProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkInviteToProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/bulk/participants/invite',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.certificate.issuedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'results.item.progress.completionPercentage' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkInviteToProgram;\n}\n\n/**\n * Bulk invites all participants to program, but not more then 1000.\n * For each member participant in Invited state is created.\n */\nexport function bulkInviteAllToProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkInviteAllToProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/bulk/participants/invite-all',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkInviteAllToProgram;\n}\n\n/**\n * Bulk adds participants to program.\n * Participant will be either created in state Joined, or updated to that state\n * from pending one.\n */\nexport function bulkAddToProgram(payload: object): RequestOptionsFactory<any> {\n function __bulkAddToProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/bulk/participants/add',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.certificate.issuedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'results.item.progress.completionPercentage' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkAddToProgram;\n}\n\n/**\n * Bulk adds all site members to program, but not more then 1000.\n * Participant will be either created in state Joined, or updated to that state\n * from pending one.\n */\nexport function bulkAddAllToProgram(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkAddAllToProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddAllToProgram',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/bulk/participants/add-all',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkAddAllToProgram;\n}\n\n/**\n * Bulk approves participants, who asked to join private program (aka in\n * state `APPROVAL_PENDING`). If participant was in other state, no effect and\n * error returned.\n */\nexport function bulkApproveParticipant(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkApproveParticipant({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/bulk/participants/approve',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.certificate.issuedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'results.item.progress.completionPercentage' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkApproveParticipant;\n}\n\n/**\n * Bulk approves all pending participants, who asked to join private program (aka\n * in state `APPROVAL_PENDING`).\n */\nexport function bulkApproveAllParticipant(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkApproveAllParticipant({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/bulk/participants/approve-all',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkApproveAllParticipant;\n}\n\n/**\n * Delete participant from program by owner will. Removes participant from member\n * group. Leaves him in Social Group.\n */\nexport function deleteParticipant(payload: object): RequestOptionsFactory<any> {\n function __deleteParticipant({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.DeleteParticipant',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/participants/{participantId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteParticipant;\n}\n\n/** Issue certificate by site admin */\nexport function issueCertificate(payload: object): RequestOptionsFactory<any> {\n function __issueCertificate({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.IssueCertificate',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/participants/{participantId}/issue-certificate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'participant.createdDate' },\n { path: 'participant.updatedDate' },\n { path: 'participant.certificate.issuedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'participant.progress.completionPercentage' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __issueCertificate;\n}\n\n/** Get program's completion stats */\nexport function getCompletionStats(\n payload: object\n): RequestOptionsFactory<any> {\n function __getCompletionStats({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'GET' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.GetCompletionStats',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/stats/completion/{programId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'completionRate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCompletionStats;\n}\n\n/** Get premium stats */\nexport function getPremiumStats(payload: object): RequestOptionsFactory<any> {\n function __getPremiumStats({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'GET' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ManageParticipantsService.GetPremiumStats',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({\n protoPath: '/v3/stats/premium',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getPremiumStats;\n}\n\n/** Exports data about participants as well as resolved steps in program. */\nexport function exportParticipantsStats(\n payload: object\n): RequestOptionsFactory<any> {\n function __exportParticipantsStats({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.participant',\n method: 'GET' as any,\n methodFqn:\n 'wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats',\n packageName: PACKAGE_NAME,\n url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({\n protoPath: '/v3/participants/export/{programId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __exportParticipantsStats;\n}\n","import * as ambassadorWixOnlineProgramsV3Participant from './online-programs-v3-participant-participants.http.js';\nimport * as ambassadorWixOnlineProgramsV3ParticipantTypes from './online-programs-v3-participant-participants.types.js';\nimport * as ambassadorWixOnlineProgramsV3ParticipantUniversalTypes from './online-programs-v3-participant-participants.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function joinProgram(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.JoinProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.JoinProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.JoinProgramResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.JoinProgramResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.joinProgram(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participants/join',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getParticipant(): __PublicMethodMetaInfo<\n 'GET',\n { participantId: string },\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.GetParticipantRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.GetParticipantRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.GetParticipantResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.GetParticipantResponse\n> {\n const payload = { participantId: ':participantId' } as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.getParticipant(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/participants/{participantId}',\n pathParams: { participantId: 'participantId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function leaveProgram(): __PublicMethodMetaInfo<\n 'POST',\n { participantId: string },\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.LeaveProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.LeaveProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.LeaveProgramResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.LeaveProgramResponse\n> {\n const payload = { participantId: ':participantId' } as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.leaveProgram(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participants/{participantId}/leave',\n pathParams: { participantId: 'participantId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryParticipants(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.QueryParticipantsRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.QueryParticipantsRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.QueryParticipantsResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.QueryParticipantsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.queryParticipants(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participants/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getAccessStatus(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.GetAccessStatusRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.GetAccessStatusRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.GetAccessStatusResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.GetAccessStatusResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.getAccessStatus(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/participants/access',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function applyCoupon(): __PublicMethodMetaInfo<\n 'POST',\n { participantId: string; couponCode: string },\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.ApplyCouponRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.ApplyCouponRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.ApplyCouponResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.ApplyCouponResponse\n> {\n const payload = {\n participantId: ':participantId',\n couponCode: ':couponCode',\n } as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.applyCoupon(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participants/{participantId}/coupons/{couponCode}/apply',\n pathParams: { participantId: 'participantId', couponCode: 'couponCode' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function revertCoupon(): __PublicMethodMetaInfo<\n 'POST',\n { participantId: string; couponId: string },\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.RevertCouponRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.RevertCouponRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.RevertCouponResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.RevertCouponResponse\n> {\n const payload = {\n participantId: ':participantId',\n couponId: ':couponId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.revertCoupon(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participants/{participantId}/coupons/{couponId}/revert',\n pathParams: { participantId: 'participantId', couponId: 'couponId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkInviteToProgram(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkInviteToProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkInviteToProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkInviteToProgramResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkInviteToProgramResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.bulkInviteToProgram(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/bulk/participants/invite',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkInviteAllToProgram(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkInviteAllToProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkInviteAllToProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkInviteAllToProgramResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkInviteAllToProgramResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.bulkInviteAllToProgram(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/bulk/participants/invite-all',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkAddToProgram(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkAddToProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkAddToProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkAddToProgramResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkAddToProgramResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.bulkAddToProgram(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/bulk/participants/add',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkAddAllToProgram(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkAddAllToProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkAddAllToProgramRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkAddAllToProgramResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkAddAllToProgramResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.bulkAddAllToProgram(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/bulk/participants/add-all',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkApproveParticipant(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkApproveParticipantRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkApproveParticipantRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkApproveParticipantResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkApproveParticipantResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.bulkApproveParticipant(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/bulk/participants/approve',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkApproveAllParticipant(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkApproveAllParticipantRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkApproveAllParticipantRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.BulkApproveAllParticipantResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.BulkApproveAllParticipantResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.bulkApproveAllParticipant(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/bulk/participants/approve-all',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteParticipant(): __PublicMethodMetaInfo<\n 'DELETE',\n { participantId: string },\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.DeleteParticipantRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.DeleteParticipantRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.DeleteParticipantResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.DeleteParticipantResponse\n> {\n const payload = { participantId: ':participantId' } as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.deleteParticipant(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v3/participants/{participantId}',\n pathParams: { participantId: 'participantId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function issueCertificate(): __PublicMethodMetaInfo<\n 'POST',\n { participantId: string },\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.IssueCertificateRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.IssueCertificateRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.IssueCertificateResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.IssueCertificateResponse\n> {\n const payload = { participantId: ':participantId' } as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.issueCertificate(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/participants/{participantId}/issue-certificate',\n pathParams: { participantId: 'participantId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getCompletionStats(): __PublicMethodMetaInfo<\n 'GET',\n { programId: string },\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.GetCompletionStatsRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.GetCompletionStatsRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.GetCompletionStatsResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.GetCompletionStatsResponse\n> {\n const payload = { programId: ':programId' } as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.getCompletionStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/stats/completion/{programId}',\n pathParams: { programId: 'programId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPremiumStats(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.GetPremiumStatsRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.GetPremiumStatsRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.GetPremiumStatsResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.GetPremiumStatsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.getPremiumStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/stats/premium',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function exportParticipantsStats(): __PublicMethodMetaInfo<\n 'GET',\n { programId: string },\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.ExportParticipantsStatsRequest,\n ambassadorWixOnlineProgramsV3ParticipantTypes.ExportParticipantsStatsRequest,\n ambassadorWixOnlineProgramsV3ParticipantUniversalTypes.ExportParticipantsStatsResponse,\n ambassadorWixOnlineProgramsV3ParticipantTypes.ExportParticipantsStatsResponse\n> {\n const payload = { programId: ':programId' } as any;\n\n const getRequestOptions =\n ambassadorWixOnlineProgramsV3Participant.exportParticipantsStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/participants/export/{programId}',\n pathParams: { programId: 'programId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,mEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;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,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,sBAOd;AACA,QAAM,UAAU,EAAE,WAAW,aAAa;AAE1C,QAAM,oBACqC,mBAAmB,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACqC,gBAAgB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU,EAAE,WAAW,aAAa;AAE1C,QAAM,oBACqC,wBAAwB,OAAO;AAE1E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","joinProgram","getParticipant","leaveProgram","queryParticipants","getAccessStatus","applyCoupon","revertCoupon","bulkInviteToProgram","bulkInviteAllToProgram","bulkAddToProgram","bulkAddAllToProgram","bulkApproveParticipant","bulkApproveAllParticipant","deleteParticipant","issueCertificate","getCompletionStats","getPremiumStats","exportParticipantsStats"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,198 @@
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { JoinProgramResponse, Participant, ParticipantsQueryBuilder, GetAccessStatusResponse, ApplyCouponIdentifiers, ApplyCouponResponse, RevertCouponIdentifiers, RevertCouponResponse, BulkInviteToProgramOptions, BulkInviteToProgramResponse, BulkInviteAllToProgramOptions, BulkInviteAllToProgramResponse, BulkAddToProgramOptions, BulkAddToProgramResponse, BulkAddAllToProgramOptions, BulkAddAllToProgramResponse, BulkApproveParticipantOptions, BulkApproveParticipantResponse, BulkApproveAllParticipantOptions, BulkApproveAllParticipantResponse, IssueCertificateResponse, GetCompletionStatsResponse, GetPremiumStatsResponse, ParticipantJoinedEnvelope, ParticipantLeftEnvelope, ParticipantDeletedEnvelope, ParticipantAddedEnvelope, ParticipantApprovedEnvelope, ParticipantInvitedEnvelope, ParticipantRejectedEnvelope } from './index.typings.js';
3
+ export { AccountInfo, ActionEvent, Address, AddressLocation, AddressStreetOneOf, ApplicationError, ApplyCouponRequest, AutoRemovedOptions, BaseEventMetadata, Behavior, BehaviorBehaviorOneOf, Benefit, BenefitNotification, BenefitType, BenefitTypeWithLiterals, BulkActionMetadata, BulkAddAllToProgramRequest, BulkAddToProgramRequest, BulkAddToProgramResult, BulkApproveAllParticipantRequest, BulkApproveParticipantRequest, BulkApproveParticipantResult, BulkInviteAllToProgramRequest, BulkInviteToProgramRequest, BulkInviteToProgramResult, Certificate, CompleteParticipantRequest, CompleteParticipantResponse, CompletedOptions, CreditCardPaymentMethodData, CurrencyAmount, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteParticipantRequest, DeleteParticipantResponse, Discount, DiscountDiscountOneOf, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EntryPass, Event, EventMetadata, EventType, EventTypeWithLiterals, EventWithLiterals, ExportParticipantsStatsRequest, ExportParticipantsStatsResponse, ExtendedFields, FailedOptions, FreeCouponOptions, FullAddressContactDetails, GetAccessStatusRequest, GetCompletionStatsRequest, GetParticipantRequest, GetParticipantResponse, GetPremiumStatsRequest, IdentificationData, IdentificationDataIdOneOf, Initiator, InitiatorWithLiterals, IssueCertificateRequest, ItemMetadata, JoinPath, JoinPathWithLiterals, JoinProgramRequest, JoinedOptions, JoinedOptionsJoinPathOptionsOneOf, LeaveProgramRequest, LeaveProgramResponse, MessageEnvelope, OfflinePaymentSent, Order, OrderAdditionalCharges, OrderItem, OrderItemCategory, OrderItemCategoryWithLiterals, PaidPlanOptions, ParticipantAdded, ParticipantApproved, ParticipantExportsFinished, ParticipantInvited, ParticipantJoined, ParticipantLeft, ParticipantRejected, ParticipantStateOptionsOneOf, ParticipantsBulkCompleteEvent, ParticipantsBulkDeleteEvent, ParticipantsQueryResult, PaymentEvent, PaymentEventEventOneOf, PaymentFailed, PaymentPendingOptions, Progress, QueryParticipantsRequest, QueryParticipantsResponse, RecurringPaymentCancellationDetails, RecurringPaymentDetails, RecurringPaymentStatusChangedEvent, Refund, RefundStatus, RefundStatusChangedEvent, RefundStatusWithLiterals, RemovalReason, RemovalReasonWithLiterals, RestoreInfo, RevertCouponRequest, ScheduledAction, ScheduledActionType, ScheduledActionTypeWithLiterals, SinglePaymentConfirmed, SinglePaymentDeclined, SinglePaymentOptions, SortOrder, SortOrderWithLiterals, Sorting, StandardDetails, State, StateWithLiterals, Status, StatusWithLiterals, StreetAddress, Subdivision, SubdivisionType, SubdivisionTypeWithLiterals, SuspendedOptions, Transaction, TransactionCreatedEvent, TransactionPaymentMethodDataOneOf, TransactionStatus, TransactionStatusChangedEvent, TransactionStatusWithLiterals, TransactionUpdatedEvent, VatId, VatType, VatTypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
+
5
+ declare function joinProgram$1(httpClient: HttpClient): JoinProgramSignature;
6
+ interface JoinProgramSignature {
7
+ /**
8
+ * Member joins the program. By the type of program, participant in corresponding
9
+ * state will be created.
10
+ * @param - Program to join
11
+ */
12
+ (programId: string): Promise<NonNullablePaths<JoinProgramResponse, `participant.paymentPendingOptions.paidPlanIds` | `participant.joinedOptions.singlePaymentOptions.orderId` | `participant.joinedOptions.paidPlanOptions.planIds` | `participant.joinedOptions.freeCouponOptions.couponId` | `participant.joinedOptions.timeZone` | `participant.joinedOptions.startDate` | `participant.joinedOptions.joinPath` | `participant.completedOptions.startDate` | `participant.failedOptions.startDate` | `participant.suspendedOptions.startDate` | `participant.autoRemovedOptions.startDate` | `participant.memberId` | `participant.programId` | `participant.progress.totalStepsCompleted` | `participant.progress.totalStepsAvailable` | `participant.progress.completionPercentage` | `participant.state`, 5>>;
13
+ }
14
+ declare function getParticipant$1(httpClient: HttpClient): GetParticipantSignature;
15
+ interface GetParticipantSignature {
16
+ /**
17
+ * Returns participant.
18
+ * @param - Participant id to fetch
19
+ * @returns existing participant
20
+ */
21
+ (participantId: string): Promise<NonNullablePaths<Participant, `paymentPendingOptions.paidPlanIds` | `joinedOptions.singlePaymentOptions.orderId` | `joinedOptions.paidPlanOptions.planIds` | `joinedOptions.freeCouponOptions.couponId` | `joinedOptions.timeZone` | `joinedOptions.startDate` | `joinedOptions.joinPath` | `completedOptions.startDate` | `failedOptions.startDate` | `suspendedOptions.startDate` | `autoRemovedOptions.startDate` | `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `state`, 4>>;
22
+ }
23
+ declare function leaveProgram$1(httpClient: HttpClient): LeaveProgramSignature;
24
+ interface LeaveProgramSignature {
25
+ /**
26
+ * Participant leaves program. Entity will be deleted. Idempotent call.
27
+ * @param - Participant id to leave program
28
+ */
29
+ (participantId: string): Promise<void>;
30
+ }
31
+ declare function queryParticipants$1(httpClient: HttpClient): QueryParticipantsSignature;
32
+ interface QueryParticipantsSignature {
33
+ /**
34
+ * Query existing participants
35
+ */
36
+ (): ParticipantsQueryBuilder;
37
+ }
38
+ declare function getAccessStatus$1(httpClient: HttpClient): GetAccessStatusSignature;
39
+ interface GetAccessStatusSignature {
40
+ /**
41
+ * Get access status
42
+ */
43
+ (): Promise<NonNullablePaths<GetAccessStatusResponse, `isBlocked`, 2>>;
44
+ }
45
+ declare function applyCoupon$1(httpClient: HttpClient): ApplyCouponSignature;
46
+ interface ApplyCouponSignature {
47
+ /**
48
+ * Apply coupon to order
49
+ */
50
+ (identifiers: NonNullablePaths<ApplyCouponIdentifiers, `couponCode` | `participantId`, 2>, orderId: string): Promise<NonNullablePaths<ApplyCouponResponse, `couponId` | `subTotal` | `discount` | `total`, 2>>;
51
+ }
52
+ declare function revertCoupon$1(httpClient: HttpClient): RevertCouponSignature;
53
+ interface RevertCouponSignature {
54
+ /**
55
+ * Remove coupon from order
56
+ */
57
+ (identifiers: NonNullablePaths<RevertCouponIdentifiers, `couponId` | `participantId`, 2>, orderId: string): Promise<NonNullablePaths<RevertCouponResponse, `total`, 2>>;
58
+ }
59
+ declare function bulkInviteToProgram$1(httpClient: HttpClient): BulkInviteToProgramSignature;
60
+ interface BulkInviteToProgramSignature {
61
+ /**
62
+ * Bulk invites participants to program.
63
+ * For each member participant in Invited state is created.
64
+ * @param - Program to which bulk invite participants.
65
+ */
66
+ (programId: string, options?: BulkInviteToProgramOptions): Promise<NonNullablePaths<BulkInviteToProgramResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.joinedOptions.timeZone` | `results.${number}.item.joinedOptions.startDate` | `results.${number}.item.joinedOptions.joinPath` | `results.${number}.item.completedOptions.startDate` | `results.${number}.item.failedOptions.startDate` | `results.${number}.item.suspendedOptions.startDate` | `results.${number}.item.autoRemovedOptions.startDate` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.state` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
67
+ }
68
+ declare function bulkInviteAllToProgram$1(httpClient: HttpClient): BulkInviteAllToProgramSignature;
69
+ interface BulkInviteAllToProgramSignature {
70
+ /**
71
+ * Bulk invites all participants to program, but not more then 1000.
72
+ * For each member participant in Invited state is created.
73
+ * @param - Program to which bulk add participants.
74
+ */
75
+ (programId: string, options?: BulkInviteAllToProgramOptions): Promise<NonNullablePaths<BulkInviteAllToProgramResponse, `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 3>>;
76
+ }
77
+ declare function bulkAddToProgram$1(httpClient: HttpClient): BulkAddToProgramSignature;
78
+ interface BulkAddToProgramSignature {
79
+ /**
80
+ * Bulk adds participants to program.
81
+ * Participant will be either created in state Joined, or updated to that state
82
+ * from pending one.
83
+ * @param - Program to which bulk add participants.
84
+ */
85
+ (programId: string, options?: BulkAddToProgramOptions): Promise<NonNullablePaths<BulkAddToProgramResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.joinedOptions.timeZone` | `results.${number}.item.joinedOptions.startDate` | `results.${number}.item.joinedOptions.joinPath` | `results.${number}.item.completedOptions.startDate` | `results.${number}.item.failedOptions.startDate` | `results.${number}.item.suspendedOptions.startDate` | `results.${number}.item.autoRemovedOptions.startDate` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.state` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
86
+ }
87
+ declare function bulkAddAllToProgram$1(httpClient: HttpClient): BulkAddAllToProgramSignature;
88
+ interface BulkAddAllToProgramSignature {
89
+ /**
90
+ * Bulk adds all site members to program, but not more then 1000.
91
+ * Participant will be either created in state Joined, or updated to that state
92
+ * from pending one.
93
+ * @param - Program to which bulk add participants.
94
+ */
95
+ (programId: string, options?: BulkAddAllToProgramOptions): Promise<NonNullablePaths<BulkAddAllToProgramResponse, `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 3>>;
96
+ }
97
+ declare function bulkApproveParticipant$1(httpClient: HttpClient): BulkApproveParticipantSignature;
98
+ interface BulkApproveParticipantSignature {
99
+ /**
100
+ * Bulk approves participants, who asked to join private program (aka in
101
+ * state `APPROVAL_PENDING`). If participant was in other state, no effect and
102
+ * error returned.
103
+ * @param - Participants to add
104
+ */
105
+ (participantIds: string[], options?: BulkApproveParticipantOptions): Promise<NonNullablePaths<BulkApproveParticipantResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.joinedOptions.timeZone` | `results.${number}.item.joinedOptions.startDate` | `results.${number}.item.joinedOptions.joinPath` | `results.${number}.item.completedOptions.startDate` | `results.${number}.item.failedOptions.startDate` | `results.${number}.item.suspendedOptions.startDate` | `results.${number}.item.autoRemovedOptions.startDate` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.state` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
106
+ }
107
+ declare function bulkApproveAllParticipant$1(httpClient: HttpClient): BulkApproveAllParticipantSignature;
108
+ interface BulkApproveAllParticipantSignature {
109
+ /**
110
+ * Bulk approves all pending participants, who asked to join private program (aka
111
+ * in state `APPROVAL_PENDING`).
112
+ */
113
+ (options?: BulkApproveAllParticipantOptions): Promise<NonNullablePaths<BulkApproveAllParticipantResponse, `jobId`, 2>>;
114
+ }
115
+ declare function deleteParticipant$1(httpClient: HttpClient): DeleteParticipantSignature;
116
+ interface DeleteParticipantSignature {
117
+ /**
118
+ * Delete participant from program by owner will. Removes participant from member
119
+ * group. Leaves him in Social Group.
120
+ * @param - Participants to delete
121
+ */
122
+ (participantId: string): Promise<void>;
123
+ }
124
+ declare function issueCertificate$1(httpClient: HttpClient): IssueCertificateSignature;
125
+ interface IssueCertificateSignature {
126
+ /**
127
+ * Issue certificate by site admin
128
+ * @param - Participant to get certificate
129
+ */
130
+ (participantId: string): Promise<NonNullablePaths<IssueCertificateResponse, `participant.paymentPendingOptions.paidPlanIds` | `participant.joinedOptions.singlePaymentOptions.orderId` | `participant.joinedOptions.paidPlanOptions.planIds` | `participant.joinedOptions.freeCouponOptions.couponId` | `participant.joinedOptions.timeZone` | `participant.joinedOptions.startDate` | `participant.joinedOptions.joinPath` | `participant.completedOptions.startDate` | `participant.failedOptions.startDate` | `participant.suspendedOptions.startDate` | `participant.autoRemovedOptions.startDate` | `participant.memberId` | `participant.programId` | `participant.progress.totalStepsCompleted` | `participant.progress.totalStepsAvailable` | `participant.progress.completionPercentage` | `participant.state`, 5>>;
131
+ }
132
+ declare function getCompletionStats$1(httpClient: HttpClient): GetCompletionStatsSignature;
133
+ interface GetCompletionStatsSignature {
134
+ /**
135
+ * Get program's completion stats
136
+ * @param - program id to get stats for
137
+ */
138
+ (programId: string): Promise<NonNullablePaths<GetCompletionStatsResponse, `completedAll` | `completionRate`, 2>>;
139
+ }
140
+ declare function getPremiumStats$1(httpClient: HttpClient): GetPremiumStatsSignature;
141
+ interface GetPremiumStatsSignature {
142
+ /**
143
+ * Get premium stats
144
+ */
145
+ (): Promise<NonNullablePaths<GetPremiumStatsResponse, `hasPremium` | `activeParticipantsCount` | `activeParticipantsLimit`, 2>>;
146
+ }
147
+ /** @internal */
148
+ declare function exportParticipantsStats$1(httpClient: HttpClient): ExportParticipantsStatsSignature;
149
+ interface ExportParticipantsStatsSignature {
150
+ /**
151
+ * Exports data about participants as well as resolved steps in program.
152
+ * @param - program id to export data from
153
+ */
154
+ (programId: string): Promise<void>;
155
+ }
156
+ declare const onParticipantJoined$1: EventDefinition<ParticipantJoinedEnvelope, "wix.online_programs.v3.participant_participant_joined">;
157
+ declare const onParticipantLeft$1: EventDefinition<ParticipantLeftEnvelope, "wix.online_programs.v3.participant_participant_left">;
158
+ declare const onParticipantDeleted$1: EventDefinition<ParticipantDeletedEnvelope, "wix.online_programs.v3.participant_deleted">;
159
+ declare const onParticipantAdded$1: EventDefinition<ParticipantAddedEnvelope, "wix.online_programs.v3.participant_participant_added">;
160
+ declare const onParticipantApproved$1: EventDefinition<ParticipantApprovedEnvelope, "wix.online_programs.v3.participant_participant_approved">;
161
+ declare const onParticipantInvited$1: EventDefinition<ParticipantInvitedEnvelope, "wix.online_programs.v3.participant_participant_invited">;
162
+ declare const onParticipantRejected$1: EventDefinition<ParticipantRejectedEnvelope, "wix.online_programs.v3.participant_participant_rejected">;
163
+
164
+ declare const joinProgram: MaybeContext<BuildRESTFunction<typeof joinProgram$1> & typeof joinProgram$1>;
165
+ declare const getParticipant: MaybeContext<BuildRESTFunction<typeof getParticipant$1> & typeof getParticipant$1>;
166
+ declare const leaveProgram: MaybeContext<BuildRESTFunction<typeof leaveProgram$1> & typeof leaveProgram$1>;
167
+ declare const queryParticipants: MaybeContext<BuildRESTFunction<typeof queryParticipants$1> & typeof queryParticipants$1>;
168
+ declare const getAccessStatus: MaybeContext<BuildRESTFunction<typeof getAccessStatus$1> & typeof getAccessStatus$1>;
169
+ declare const applyCoupon: MaybeContext<BuildRESTFunction<typeof applyCoupon$1> & typeof applyCoupon$1>;
170
+ declare const revertCoupon: MaybeContext<BuildRESTFunction<typeof revertCoupon$1> & typeof revertCoupon$1>;
171
+ declare const bulkInviteToProgram: MaybeContext<BuildRESTFunction<typeof bulkInviteToProgram$1> & typeof bulkInviteToProgram$1>;
172
+ declare const bulkInviteAllToProgram: MaybeContext<BuildRESTFunction<typeof bulkInviteAllToProgram$1> & typeof bulkInviteAllToProgram$1>;
173
+ declare const bulkAddToProgram: MaybeContext<BuildRESTFunction<typeof bulkAddToProgram$1> & typeof bulkAddToProgram$1>;
174
+ declare const bulkAddAllToProgram: MaybeContext<BuildRESTFunction<typeof bulkAddAllToProgram$1> & typeof bulkAddAllToProgram$1>;
175
+ declare const bulkApproveParticipant: MaybeContext<BuildRESTFunction<typeof bulkApproveParticipant$1> & typeof bulkApproveParticipant$1>;
176
+ declare const bulkApproveAllParticipant: MaybeContext<BuildRESTFunction<typeof bulkApproveAllParticipant$1> & typeof bulkApproveAllParticipant$1>;
177
+ declare const deleteParticipant: MaybeContext<BuildRESTFunction<typeof deleteParticipant$1> & typeof deleteParticipant$1>;
178
+ declare const issueCertificate: MaybeContext<BuildRESTFunction<typeof issueCertificate$1> & typeof issueCertificate$1>;
179
+ declare const getCompletionStats: MaybeContext<BuildRESTFunction<typeof getCompletionStats$1> & typeof getCompletionStats$1>;
180
+ declare const getPremiumStats: MaybeContext<BuildRESTFunction<typeof getPremiumStats$1> & typeof getPremiumStats$1>;
181
+ /** @internal */
182
+ declare const exportParticipantsStats: MaybeContext<BuildRESTFunction<typeof exportParticipantsStats$1> & typeof exportParticipantsStats$1>;
183
+ /** */
184
+ declare const onParticipantJoined: BuildEventDefinition<typeof onParticipantJoined$1> & typeof onParticipantJoined$1;
185
+ /** */
186
+ declare const onParticipantLeft: BuildEventDefinition<typeof onParticipantLeft$1> & typeof onParticipantLeft$1;
187
+ /** */
188
+ declare const onParticipantDeleted: BuildEventDefinition<typeof onParticipantDeleted$1> & typeof onParticipantDeleted$1;
189
+ /** */
190
+ declare const onParticipantAdded: BuildEventDefinition<typeof onParticipantAdded$1> & typeof onParticipantAdded$1;
191
+ /** */
192
+ declare const onParticipantApproved: BuildEventDefinition<typeof onParticipantApproved$1> & typeof onParticipantApproved$1;
193
+ /** */
194
+ declare const onParticipantInvited: BuildEventDefinition<typeof onParticipantInvited$1> & typeof onParticipantInvited$1;
195
+ /** */
196
+ declare const onParticipantRejected: BuildEventDefinition<typeof onParticipantRejected$1> & typeof onParticipantRejected$1;
197
+
198
+ export { ApplyCouponIdentifiers, ApplyCouponResponse, BulkAddAllToProgramOptions, BulkAddAllToProgramResponse, BulkAddToProgramOptions, BulkAddToProgramResponse, BulkApproveAllParticipantOptions, BulkApproveAllParticipantResponse, BulkApproveParticipantOptions, BulkApproveParticipantResponse, BulkInviteAllToProgramOptions, BulkInviteAllToProgramResponse, BulkInviteToProgramOptions, BulkInviteToProgramResponse, GetAccessStatusResponse, GetCompletionStatsResponse, GetPremiumStatsResponse, IssueCertificateResponse, JoinProgramResponse, Participant, ParticipantAddedEnvelope, ParticipantApprovedEnvelope, ParticipantDeletedEnvelope, ParticipantInvitedEnvelope, ParticipantJoinedEnvelope, ParticipantLeftEnvelope, ParticipantRejectedEnvelope, ParticipantsQueryBuilder, RevertCouponIdentifiers, RevertCouponResponse, applyCoupon, bulkAddAllToProgram, bulkAddToProgram, bulkApproveAllParticipant, bulkApproveParticipant, bulkInviteAllToProgram, bulkInviteToProgram, deleteParticipant, exportParticipantsStats, getAccessStatus, getCompletionStats, getParticipant, getPremiumStats, issueCertificate, joinProgram, leaveProgram, onParticipantAdded, onParticipantApproved, onParticipantDeleted, onParticipantInvited, onParticipantJoined, onParticipantLeft, onParticipantRejected, queryParticipants, revertCoupon };