@gymspace/sdk 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.mts +55 -9
- package/dist/index.d.ts +55 -9
- package/dist/index.js +73 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +73 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +10 -6
- package/src/models/onboarding.ts +29 -6
- package/src/resources/onboarding.ts +70 -7
- package/src/types.ts +1 -0
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../node_modules/@gymspace/shared/src/enums.ts","../node_modules/@gymspace/shared/src/types/whatsapp-templates.types.ts","../node_modules/@gymspace/shared/src/types.ts","../node_modules/@gymspace/shared/src/interfaces.ts","../node_modules/@gymspace/shared/src/constants/template-codes.constants.ts","../node_modules/@gymspace/shared/src/constants/bulk-message-variables.ts","../node_modules/@gymspace/shared/src/constants.ts","../node_modules/@gymspace/shared/src/utils/rolehelpers.ts","../node_modules/@gymspace/shared/src/events/whatsapp.events.ts","../node_modules/@gymspace/shared/src/events/bulk-messaging.events.ts","../node_modules/@gymspace/shared/src/events/activity.events.ts","../node_modules/@gymspace/shared/src/events/index.ts","../../../node_modules/zod/v3/helpers/typealiases.d.cts","../../../node_modules/zod/v3/helpers/util.d.cts","../../../node_modules/zod/v3/index.d.cts","../../../node_modules/zod/v3/zoderror.d.cts","../../../node_modules/zod/v3/locales/en.d.cts","../../../node_modules/zod/v3/errors.d.cts","../../../node_modules/zod/v3/helpers/parseutil.d.cts","../../../node_modules/zod/v3/helpers/enumutil.d.cts","../../../node_modules/zod/v3/helpers/errorutil.d.cts","../../../node_modules/zod/v3/helpers/partialutil.d.cts","../../../node_modules/zod/v3/standard-schema.d.cts","../../../node_modules/zod/v3/types.d.cts","../../../node_modules/zod/v3/external.d.cts","../../../node_modules/zod/index.d.cts","../node_modules/@gymspace/shared/src/schemas/ai-template.schema.ts","../node_modules/@gymspace/shared/src/schemas/bulk-message.schema.ts","../node_modules/@gymspace/shared/src/schemas/index.ts","../node_modules/@gymspace/shared/src/index.ts","../src/types.ts","../src/errors.ts","../src/client.ts","../src/utils/agent-fetch.ts","../src/models/subscriptions.ts","../src/models/auth.ts","../src/resources/base.ts","../src/resources/auth.ts","../src/models/organizations.ts","../src/resources/organizations.ts","../src/models/gyms.ts","../src/resources/gyms.ts","../src/resources/collaborators.ts","../src/models/roles.ts","../src/resources/roles.ts","../src/models/clients.ts","../src/resources/clients.ts","../src/models/membership-plans.ts","../src/resources/membership-plans.ts","../src/models/contracts.ts","../src/resources/contracts.ts","../src/models/dashboard.ts","../src/resources/dashboard.ts","../src/models/check-ins.ts","../src/resources/check-ins.ts","../src/resources/invitations.ts","../src/models/assets.ts","../src/resources/assets.ts","../src/models/files.ts","../src/resources/files.ts","../src/models/catalog.ts","../src/resources/public-catalog.ts","../src/resources/admin-catalog.ts","../src/resources/health.ts","../src/models/onboarding.ts","../src/resources/onboarding.ts","../src/models/products.ts","../src/resources/products.ts","../src/models/sales.ts","../src/resources/sales.ts","../src/models/suppliers.ts","../src/resources/suppliers.ts","../src/models/users.ts","../src/resources/users.ts","../src/resources/subscriptions.ts","../src/resources/subscription-plans.ts","../src/resources/admin-subscription-management.ts","../src/models/payment-methods.ts","../src/resources/payment-methods.ts","../src/models/whatsapp.ts","../src/resources/whatsapp.ts","../src/resources/whatsapp-templates.ts","../src/models/bulk-messaging.ts","../src/resources/bulk-messaging.ts","../src/models/activities.ts","../src/resources/activities.ts","../src/models/tags.ts","../src/resources/tags.ts","../src/models/commissions.ts","../src/resources/commission-config.ts","../src/resources/commission-rules.ts","../src/resources/commission-calculations.ts","../src/resources/commission-reports.ts","../src/resources/commission-promotions.ts","../src/resources/index.ts","../src/sdk.ts","../src/models/subscription-plans.ts","../src/models/admin-subscription-management.ts","../src/models/index.ts","../src/index.ts","../src/models/collaborators.ts","../src/models/invitations.ts"],"fileIdsList":[[72],[63,64],[60,61,63,65,66,71],[61,63],[71],[63],[60,61,63,66,67,68,69,70],[60,61,62],[52,53],[49],[56,57,58],[48,50,51,53,54,55,57,59,76],[48,50],[73],[74,75],[48,49],[47,78,79],[78,79,80,142,143,146],[124],[82],[77],[77,78],[82,83,86,88,91,93,95,97,99,101,104,106,108,112,114,116,118,120,125,127,130,132,134,136,144,145],[78],[123],[78,84,132],[78,84,108],[78,84],[84,104],[78,82,83,84],[78,80],[78,84,130],[78,84,101],[78,84,93],[77,78,84],[78,84,136],[78,84,97],[84,99],[84,106],[78,84,88],[85,87,89,90,92,94,96,98,100,102,103,105,107,109,110,111,113,115,117,119,121,122,123,124,126,128,129,131,133,135,137,138,139,140,141],[78,84,95],[84,112],[78,84,86],[78,84,125],[78,84,114],[77,78,84,91],[78,84,116],[78,82,84],[78,84,118],[78,84,134],[78,84,120],[78,84,127],[78,80,81,142],[80]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7584239b853f690c6629ae8bb683ded6ff33104e7835778bbca5ee1b1d9a0a91","impliedFormat":99},{"version":"67b5766e4f99991e9c69258f2a6f157c0c42cba3e2f4d3a0395b105298d529d3","impliedFormat":1},{"version":"e88e48e9e12171b0e3c661c53b8f1f496fd8922b164593d86701dfc2ccf79dcf","impliedFormat":1},{"version":"2c160a58d0e3862445307085f71241f435303952c58692c1fb8fc67424f8b466","impliedFormat":1},{"version":"5d43729825004f65a169ceb8cb72c4a2902571ab455c380b733f79a29764a6d2","impliedFormat":1},{"version":"81e06c7efa25551f23a6c038f510fa74b017d35547df3e752a5a915dd8c5df7d","impliedFormat":1},{"version":"458dff79e03638415b03438ab46b70dd5b6a37c3a41d11ea40b93edb1d738fe3","impliedFormat":1},{"version":"461620e6ed189f7066d20fac474f5ce6bb0dbba625c5d8a260557468c93bdfe6","impliedFormat":1},{"version":"c934cb299bc6f46910e61a6655ed654f00036817c3474499cb6c4ebc72c2fddc","impliedFormat":1},{"version":"f56e30360a441fc374b3cbe77c18a37f8a9b83b3eb79407945c3a52912a887e7","impliedFormat":1},{"version":"e08f569e7171570ace98567ff5f964a7bcb4b39e88b96a909d685e9048739d10","impliedFormat":1},{"version":"dcd768b31a77e38cc7dc147cbd1d80183ab3db2fca03939ec89d9ae8b13581f4","impliedFormat":1},{"version":"27bc4e2e091355feffae8d0f6b09251c9e1340fcd9e5f4a64adaad9e0d80bec8","impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},{"version":"c0e0824bf7c079f44b7434e78666c33130c0c6f2f4f54bee5119e619c6d15bc3","impliedFormat":1},{"version":"c9d892f7136d7492da48218a0b102cec47a705da60a8b1b54ea6fab550ad5334","impliedFormat":1},{"version":"21ca67df17a3e99d5178bcc3769a703adc1e6c2338318259aaaab4dfe1394933","impliedFormat":1},{"version":"1aead7b85ac2bc7ba405a17b6a901c7192e8eb52cdbe84781093cab1f48c2b74","impliedFormat":1},"de5d423a7d7a14ed12522b42b44d13092b78d34680c316843b3fcad988b70747","122f963f839dffe02992f3c29c4f9d22c8be0bf865bd4015498e9a55b718d2ef","b1a149cca677086760e404839028e0c7137b7b9b5f7f02a2ca853b59bbac13a7","358f0833c081a5ba5dd957d18530f507688c922f08054c12a78e0d42534a3bbc","ea6eb004e021c23a2d4c2090a3086234217e2d33361e62e9737ec34e3ef719e8","149cf742da9555355188424cd94735ae7bfce96f65093bad92a680208b079e6e","5fc81afdf7085284bdd04bb7b3de97769515daa5d8b2a4cecb1d4c2300b4a510","ddcce7fd9825940c4ac822754bc8ca63086567722579b89617fe8e30c8016a43","e1f06446f9832d772b1171202840aa54d56411c7470f3e1b7736e3b95210bd0e","c15d9e507818d695186b1aec0270d313a5138af35222d30cd41f95c117065056","0e29c01962ead885f81ff7a94811f6d7eca471e86321031f360f6a0a57dddb78","db0c5964a56ddaed5f25597cc06a05c2c4f8c8e785a0d450cb81386d9766b8eb","62eb992c4944eb724c9bc4a531f8c954a7aa94301b52f172cc69b335b738588c","2b949dc19987d2217953b362864780adabb1318bf2c6be5a76ca6a59220c7bf3","58e5f7be56dc310c730db38ab7df7bc1e17742bd54e55356f70def71cf45a847","c478bbdc874295b06acf9e4bf60b2a435157d1eb6f262109459c3ee7292867f3","61ec2be27c14fb6dd017426ccad9573d4195dece4182782fd36e9e584b9ba599","e980f13a6ed4125a5d9548b689c8bdc3abb89fd0e53814719471d93342ec35a8","3caa6231ff6fb326b46c622f7160201b613704084ec83cb1b2733e50bfcf9048","74a6de5ba612b3489841fdde08d026b3b34410eea1088331a1076a77292acfa9","e7a9219ee898f35f559c031adc14f12a23232d1615196b64679665bc31aaeb09","a2659947000309025232a493a24559d02d894cdfa8c3781b03b89d7b6024503c","3d1029733b77f2d20a88c2a7c9fa2eef4117e02183a64adbb9e396fde58082a2","e2ec568b04b0f45098e9f41f9a4c4b79845086e1e97140c82d812eade0149535","0ec42fefa04cdc68782cefe6753d79a951bfaf0e3562d681b152b6a138abc607","0671d70b6dcbf8c5773b2da7a2fb191ff83b90c12b9c7da6bae3ba6bd94beed6","8d5e02343427bb0f8cd07e25f13fea96f16fda4d20c4bd0bb4eb5cb950fdfb85","8ca018e6dd4960711bcfc9a62bd4dba80794d7d436a61631339054042fdcd7a1","0318a89ce8ab11333f2110b24f21182b5cbe337d633e86c2f2c8be2371d876fd","5f627cd620351e3e4ed705f0abd6d84d289dd8141a781060954f074f93036634","1e525ef71bc144624a89607587dfba06abe4d9510155eea9e9e46b6b44094600","d3caa284f02d917e299c2cab4f537f6524c1db83e8c49ad61e222b185f338f8f","e7b2f293469dd95f8ac81adec27544ae301e13f35defe5a69756321eeb275fc1","33253a790da4c3c4ca6fac42efe83f1f78f55d2a5d66a84a98ef2c24b92b12f8","91b1382fbc682fa8d5856a1c1db4d910c8fe410289c367512a0c522ec6ce869e","84615e2a24d394d7e4dcbce62e2fdbc5b6a6320b4cae035083decd8faf93f0f2","b22c287d224b16fae8ae3d8f716c03e4ef2f8898d8da7ea731440dd152c52925","f1ae7e612f0c9eeb7048ac5f1aff7f41530ac9e16c09f07222ce0ffc53a701d7","98b2be0257b290cd82d28207558424ccca1cbebd2f67b9d68205a2d9e3311785","738fccb61792698f202ad9902216584de09511cdd603349a1a164de9b89518f5","f81a07114fdf317c63b63299df9599f2a4f3dae2d1109d661eb3752847c8d489","63aa5ef7c1fad8d6758f25e968e57a4973582866fa08a3429761597653eb39f2","5a323df23f74a335e727b2273b69b49a93c877c930a91d59c219dd69a8361ace","05b2c94345341a306f1635d9cc7f42e2af5df9d9a5f9d8399e1560e774566e50","6ac3496933bea2ed5aa344ce23d763219b5118f3b35df3b5f671513a4323df67","49ac3ac2280c77813ab79de1943f256014ce0a4d977d5c7b9da645b5a9126c7e","21259e4ae26bc1386e6969a3072d6ec31dc52ad81a07b151d66d9cb9ab81cb37","51bebf61fbc48fc20666609c19f96a2ea65bcffc4971d2c0c8d5f87e94dfa59b","aa3739ab80ddd103e094a807e4a94bd9c15afc4a05f23ac79f81770b968ac5a7","e9a6a6067866d93271655e066539ae22687dad13aa6f864ffec2e0f06de10600","6d0f299b4c433721a61c81e7d71cd06cb5768e4f1c8879cc1c8466dc83eea7ce","038353dc059db1b2aee89acea285136ae3e6980b7a00dfa055749a8c9c69446d","4ed6a5342d4b3c2ee3362fd92bf0d6accb987c61fc80390ea5a97aa7662a34a5","7de4f8be457ffdffe588d67d670f6045f3fa1f7b58943afcaec4a089ff6fc698","4a4d3ca432267ee2c3328ccd9bc9cce63926aab43efc211f12f2861a0128fe0b","a442edfb09e9d8cd13a32d55897c3b9515d2daa28aa53e29e472da023dafa0d1","92993add08cef6c9b4022dc996971fa7a19f9db3cff8505801ab4b84b3763b5b","78be2b57be63cdcf2ee702b1b83b47bbad2e10e775d894be94cb762fe69e5555","5373e92103b4bac997c1c5a56fb20c33db307d23d7222a87e1c1d412aa778c89","a9507fd60c9bc85b529ad7fc61d0bb21d4b16dd91c0a522e08a00e5bd56471dc","f44eb61ba2b51021075d1895f65a610ebd4882c9ca13bfc5861c2a89750a5d7d","a8f115257802c52b66411b0f4fda408e46c12428e9d16fab24122b4ff42f6fa6","fb3f1cc0a373e662def2b5f0df965532c96842b3cdd3c3ddee5e889bbdaf5d4f","641868ca28d751af1921ce8f01cf8920786c7871e62d7af32b8b578708ebbd2d","3cf00f4865bf9824efe9bb20a4433777058b2cd742b31930c80a3192e75ead43","61ced83f9f7a85586fc6419d7467894a8e1888ff32d146fefd98f3cb21706575","630a65d71ba7571e9880f174146ef544d2818cbcf85440869823a3c69bb13438","0f397304d0d60d06be9e49ff7d18dbfc4a3fa5b3f5d72e08d77c1bf1601bf4f6","c5ca64d66de1620fe27d791be77387b62b242e6813d793ec5b5187bc943d5cea","6581f800df7e785c8aab229f06bef765ad781f0bb353091a0f23375694c7891e","2889a5f3b6a7d9cd1dd50870cfd7d33b44fd5fb2b65a007e7324e4fcbf731981","2889a5f3b6a7d9cd1dd50870cfd7d33b44fd5fb2b65a007e7324e4fcbf731981"],"root":[[78,149]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":99,"outDir":"./","rootDir":"../src","skipLibCheck":true,"target":7,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[73,1],[65,2],[72,3],[66,4],[69,5],[62,1],[64,6],[71,7],[63,8],[54,9],[52,10],[59,11],[77,12],[51,13],[74,14],[75,14],[76,15],[50,16],[80,17],[147,18],[145,19],[83,20],[130,21],[97,22],[146,23],[116,24],[144,25],[118,24],[127,24],[133,26],[110,27],[124,28],[105,29],[85,30],[84,31],[131,32],[102,33],[94,34],[90,35],[139,36],[137,36],[141,36],[140,36],[138,36],[98,37],[100,38],[107,39],[89,40],[111,28],[142,41],[103,35],[96,42],[113,43],[87,44],[126,45],[115,46],[109,27],[92,47],[117,48],[123,28],[122,49],[119,50],[135,51],[121,52],[129,53],[128,53],[143,54],[78,21],[81,55]],"affectedFilesPendingEmit":[[80,49],[79,49],[147,49],[132,49],[145,49],[104,49],[83,49],[130,49],[108,49],[101,49],[93,49],[148,49],[136,49],[97,49],[99,49],[106,49],[88,49],[146,49],[149,49],[95,49],[112,49],[86,49],[125,49],[114,49],[91,49],[116,49],[144,49],[82,49],[118,49],[134,49],[120,49],[127,49],[133,49],[110,49],[124,49],[105,49],[85,49],[84,49],[131,49],[102,49],[94,49],[90,49],[139,49],[137,49],[141,49],[140,49],[138,49],[98,49],[100,49],[107,49],[89,49],[111,49],[142,49],[103,49],[96,49],[113,49],[87,49],[126,49],[115,49],[109,49],[92,49],[117,49],[123,49],[122,49],[119,49],[135,49],[121,49],[129,49],[128,49],[143,49],[78,49],[81,49]],"emitSignatures":[78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149],"version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../node_modules/@gymspace/shared/src/enums.ts","../node_modules/@gymspace/shared/src/types/whatsapp-templates.types.ts","../node_modules/@gymspace/shared/src/types.ts","../node_modules/@gymspace/shared/src/interfaces.ts","../node_modules/@gymspace/shared/src/constants/template-codes.constants.ts","../node_modules/@gymspace/shared/src/constants/bulk-message-variables.ts","../node_modules/@gymspace/shared/src/constants.ts","../node_modules/@gymspace/shared/src/utils/rolehelpers.ts","../node_modules/@gymspace/shared/src/events/whatsapp.events.ts","../node_modules/@gymspace/shared/src/events/bulk-messaging.events.ts","../node_modules/@gymspace/shared/src/events/activity.events.ts","../node_modules/@gymspace/shared/src/events/index.ts","../../../node_modules/zod/v3/helpers/typealiases.d.cts","../../../node_modules/zod/v3/helpers/util.d.cts","../../../node_modules/zod/v3/index.d.cts","../../../node_modules/zod/v3/zoderror.d.cts","../../../node_modules/zod/v3/locales/en.d.cts","../../../node_modules/zod/v3/errors.d.cts","../../../node_modules/zod/v3/helpers/parseutil.d.cts","../../../node_modules/zod/v3/helpers/enumutil.d.cts","../../../node_modules/zod/v3/helpers/errorutil.d.cts","../../../node_modules/zod/v3/helpers/partialutil.d.cts","../../../node_modules/zod/v3/standard-schema.d.cts","../../../node_modules/zod/v3/types.d.cts","../../../node_modules/zod/v3/external.d.cts","../../../node_modules/zod/index.d.cts","../node_modules/@gymspace/shared/src/schemas/ai-template.schema.ts","../node_modules/@gymspace/shared/src/schemas/bulk-message.schema.ts","../node_modules/@gymspace/shared/src/schemas/index.ts","../node_modules/@gymspace/shared/src/index.ts","../src/types.ts","../src/errors.ts","../src/client.ts","../src/utils/agent-fetch.ts","../src/models/subscriptions.ts","../src/models/auth.ts","../src/resources/base.ts","../src/resources/auth.ts","../src/models/organizations.ts","../src/resources/organizations.ts","../src/models/gyms.ts","../src/resources/gyms.ts","../src/resources/collaborators.ts","../src/models/roles.ts","../src/resources/roles.ts","../src/models/clients.ts","../src/resources/clients.ts","../src/models/membership-plans.ts","../src/resources/membership-plans.ts","../src/models/contracts.ts","../src/resources/contracts.ts","../src/models/dashboard.ts","../src/resources/dashboard.ts","../src/models/check-ins.ts","../src/resources/check-ins.ts","../src/resources/invitations.ts","../src/models/assets.ts","../src/resources/assets.ts","../src/models/files.ts","../src/resources/files.ts","../src/models/catalog.ts","../src/resources/public-catalog.ts","../src/resources/admin-catalog.ts","../src/resources/health.ts","../src/models/onboarding.ts","../src/resources/onboarding.ts","../src/models/products.ts","../src/resources/products.ts","../src/models/sales.ts","../src/resources/sales.ts","../src/models/suppliers.ts","../src/resources/suppliers.ts","../src/models/users.ts","../src/resources/users.ts","../src/resources/subscriptions.ts","../src/resources/subscription-plans.ts","../src/resources/admin-subscription-management.ts","../src/models/payment-methods.ts","../src/resources/payment-methods.ts","../src/models/whatsapp.ts","../src/resources/whatsapp.ts","../src/resources/whatsapp-templates.ts","../src/models/bulk-messaging.ts","../src/resources/bulk-messaging.ts","../src/models/activities.ts","../src/resources/activities.ts","../src/models/tags.ts","../src/resources/tags.ts","../src/models/commissions.ts","../src/resources/commission-config.ts","../src/resources/commission-rules.ts","../src/resources/commission-calculations.ts","../src/resources/commission-reports.ts","../src/resources/commission-promotions.ts","../src/resources/index.ts","../src/sdk.ts","../src/models/subscription-plans.ts","../src/models/admin-subscription-management.ts","../src/models/index.ts","../src/index.ts","../src/models/collaborators.ts","../src/models/invitations.ts"],"fileIdsList":[[72],[63,64],[60,61,63,65,66,71],[61,63],[71],[63],[60,61,63,66,67,68,69,70],[60,61,62],[52,53],[49],[56,57,58],[48,50,51,53,54,55,57,59,76],[48,50],[73],[74,75],[48,49],[47,78,79],[78,79,80,142,143,146],[124],[82],[77],[77,78],[82,83,86,88,91,93,95,97,99,101,104,106,108,112,114,116,118,120,125,127,130,132,134,136,144,145],[78],[123],[78,84,132],[78,84,108],[78,84],[84,104],[78,82,83,84],[78,80],[78,84,130],[78,84,101],[78,84,93],[77,78,84],[78,84,136],[78,84,97],[84,99],[84,106],[78,84,88],[85,87,89,90,92,94,96,98,100,102,103,105,107,109,110,111,113,115,117,119,121,122,123,124,126,128,129,131,133,135,137,138,139,140,141],[78,84,95],[84,112],[78,84,86],[78,84,125],[78,84,114],[77,78,84,91],[78,84,116],[78,82,84],[78,84,118],[78,84,134],[78,84,120],[78,84,127],[78,80,81,142],[80]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7584239b853f690c6629ae8bb683ded6ff33104e7835778bbca5ee1b1d9a0a91","impliedFormat":99},{"version":"67b5766e4f99991e9c69258f2a6f157c0c42cba3e2f4d3a0395b105298d529d3","impliedFormat":1},{"version":"e88e48e9e12171b0e3c661c53b8f1f496fd8922b164593d86701dfc2ccf79dcf","impliedFormat":1},{"version":"2c160a58d0e3862445307085f71241f435303952c58692c1fb8fc67424f8b466","impliedFormat":1},{"version":"5d43729825004f65a169ceb8cb72c4a2902571ab455c380b733f79a29764a6d2","impliedFormat":1},{"version":"81e06c7efa25551f23a6c038f510fa74b017d35547df3e752a5a915dd8c5df7d","impliedFormat":1},{"version":"458dff79e03638415b03438ab46b70dd5b6a37c3a41d11ea40b93edb1d738fe3","impliedFormat":1},{"version":"461620e6ed189f7066d20fac474f5ce6bb0dbba625c5d8a260557468c93bdfe6","impliedFormat":1},{"version":"c934cb299bc6f46910e61a6655ed654f00036817c3474499cb6c4ebc72c2fddc","impliedFormat":1},{"version":"f56e30360a441fc374b3cbe77c18a37f8a9b83b3eb79407945c3a52912a887e7","impliedFormat":1},{"version":"e08f569e7171570ace98567ff5f964a7bcb4b39e88b96a909d685e9048739d10","impliedFormat":1},{"version":"dcd768b31a77e38cc7dc147cbd1d80183ab3db2fca03939ec89d9ae8b13581f4","impliedFormat":1},{"version":"27bc4e2e091355feffae8d0f6b09251c9e1340fcd9e5f4a64adaad9e0d80bec8","impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},{"version":"c0e0824bf7c079f44b7434e78666c33130c0c6f2f4f54bee5119e619c6d15bc3","impliedFormat":1},{"version":"c9d892f7136d7492da48218a0b102cec47a705da60a8b1b54ea6fab550ad5334","impliedFormat":1},{"version":"21ca67df17a3e99d5178bcc3769a703adc1e6c2338318259aaaab4dfe1394933","impliedFormat":1},{"version":"1aead7b85ac2bc7ba405a17b6a901c7192e8eb52cdbe84781093cab1f48c2b74","impliedFormat":1},{"version":"522237c3836c6a7c5e7afd0b1971a78ae2083d2ecdbb4c99c5b36ce3bb73505b","signature":"5b2a9006320a9617d058065dddc1a1e42d89739d373b3b7b4e0a5a398dfd58e6"},"122f963f839dffe02992f3c29c4f9d22c8be0bf865bd4015498e9a55b718d2ef",{"version":"3bd152eea19b75a31bf64fcf8e484d1113e308cd85a99f6041d7aec00837c07f","signature":"693e22be90337e8a59bf7e5d589d7706f28676520da456e602a3ab9c0fe7913d"},{"version":"358f0833c081a5ba5dd957d18530f507688c922f08054c12a78e0d42534a3bbc","signature":"b674d1fdd1783b6da247d177f47836aeb9c4679c143a0e173dba14e2d34a851e"},"ea6eb004e021c23a2d4c2090a3086234217e2d33361e62e9737ec34e3ef719e8","149cf742da9555355188424cd94735ae7bfce96f65093bad92a680208b079e6e",{"version":"5fc81afdf7085284bdd04bb7b3de97769515daa5d8b2a4cecb1d4c2300b4a510","signature":"1378a19ac5538773c2ecd0b96a8b5e411ce1314821cc0e1b4b6a8bb892722e8b"},{"version":"ddcce7fd9825940c4ac822754bc8ca63086567722579b89617fe8e30c8016a43","signature":"b49f043468712680884e7fc65bb4f0a52c90ed0a4a63c2a51a7bb200049ef71c"},"e1f06446f9832d772b1171202840aa54d56411c7470f3e1b7736e3b95210bd0e",{"version":"c15d9e507818d695186b1aec0270d313a5138af35222d30cd41f95c117065056","signature":"e4ac4146ef550d04675b1daa597b3e4307b2f17cc69fb50ee3655c7064e4edf4"},"0e29c01962ead885f81ff7a94811f6d7eca471e86321031f360f6a0a57dddb78",{"version":"db0c5964a56ddaed5f25597cc06a05c2c4f8c8e785a0d450cb81386d9766b8eb","signature":"a31002cf73a5632a35a4e800e2cc3bcd0ce530ce36089c175c40323341e29ed9"},{"version":"62eb992c4944eb724c9bc4a531f8c954a7aa94301b52f172cc69b335b738588c","signature":"91c1dd0e99f95f31ff69a2c5e044dd9b379ae022a8b6e7ddc3dad4e1ebbdf587"},"2b949dc19987d2217953b362864780adabb1318bf2c6be5a76ca6a59220c7bf3",{"version":"58e5f7be56dc310c730db38ab7df7bc1e17742bd54e55356f70def71cf45a847","signature":"8d781549596f73d40fe6da38fbcd04b9a9c6f24e87928e673fb5ccaa8dfd0c8c"},"c478bbdc874295b06acf9e4bf60b2a435157d1eb6f262109459c3ee7292867f3",{"version":"61ec2be27c14fb6dd017426ccad9573d4195dece4182782fd36e9e584b9ba599","signature":"9c91a9c7de2fc73de2410762888d2c2acdca283f015d615c26bba7c1279efcbd"},"e980f13a6ed4125a5d9548b689c8bdc3abb89fd0e53814719471d93342ec35a8",{"version":"3caa6231ff6fb326b46c622f7160201b613704084ec83cb1b2733e50bfcf9048","signature":"101654020d9a19d4921a952b8a181430131267b3540782feb5e0152b72e68a33"},{"version":"74a6de5ba612b3489841fdde08d026b3b34410eea1088331a1076a77292acfa9","signature":"bb3d915af4c219177f0b3c69ec9edc4a1555e993546d2ec51031f415366d1dd3"},{"version":"e7a9219ee898f35f559c031adc14f12a23232d1615196b64679665bc31aaeb09","signature":"ee22fcbcf8e69841490ec9200ee816a90bec387ffebb188508d63d105de054ee"},"a2659947000309025232a493a24559d02d894cdfa8c3781b03b89d7b6024503c",{"version":"3d1029733b77f2d20a88c2a7c9fa2eef4117e02183a64adbb9e396fde58082a2","signature":"baf94619bcba8ffef86033f0dd8a1013564376161788cacf1f04ef87c13a99de"},"e2ec568b04b0f45098e9f41f9a4c4b79845086e1e97140c82d812eade0149535",{"version":"0ec42fefa04cdc68782cefe6753d79a951bfaf0e3562d681b152b6a138abc607","signature":"7904b16ed4a4ecec52010f78e704f7b5382f133e1055d18c1b0f50b0dd1b84bc"},{"version":"0671d70b6dcbf8c5773b2da7a2fb191ff83b90c12b9c7da6bae3ba6bd94beed6","signature":"86826ad8ee5c30259e6b0610736ba9e1e69fa8da92cf5fe2d8e7c1d55d2949a1"},"8d5e02343427bb0f8cd07e25f13fea96f16fda4d20c4bd0bb4eb5cb950fdfb85",{"version":"8ca018e6dd4960711bcfc9a62bd4dba80794d7d436a61631339054042fdcd7a1","signature":"6856cd056e8e67ca0c9f69a3ecd5b65c94e56dc41d16a005c1b126f4d31da9fa"},"0318a89ce8ab11333f2110b24f21182b5cbe337d633e86c2f2c8be2371d876fd",{"version":"5f627cd620351e3e4ed705f0abd6d84d289dd8141a781060954f074f93036634","signature":"38d8e3353ac5e37089162adf6d5dd75d31fb031790cf74b975b5efc2cd1cb323"},"1e525ef71bc144624a89607587dfba06abe4d9510155eea9e9e46b6b44094600",{"version":"d3caa284f02d917e299c2cab4f537f6524c1db83e8c49ad61e222b185f338f8f","signature":"e3dedece266ba101bbddecce103513e446c586a5b23d02568a7c1328704ea062"},{"version":"3e0f95e42eac290d1e264b67de09fa4f7b97715936d58b5f1a574b78bd1138cc","signature":"8769e8f4fdf11919bee299fa7560b1f958f0bbc5065c9e94b0b4ab757ca7a878"},{"version":"33253a790da4c3c4ca6fac42efe83f1f78f55d2a5d66a84a98ef2c24b92b12f8","signature":"e7ab7d94cbae45a92a4825aa27199c061da1a36fb05eaa2b8addd112e0a8008c"},{"version":"e26d62284161cd0a2fa62b1a3d8e6ad42894936d21a92409724727545d6d0cb7","signature":"9de0126037c5932a8a6ac2e9f979a2d763aad03e6c248eedaef1ecd184890bae"},{"version":"5bf8b0a75d80464772f92fa1fb7c34833b76a5da101905f56491572824e00153","signature":"d861e7760b930bc185a8726f0d39c92c3c36c53ceed88268cb5a4c9c20ff9a22"},{"version":"f24fd0fade0ab2694b1038b1484505f61715660a5392dc8e414b5294f21dafde","signature":"1aefa5faa8fefc11c937eec59dc967c35b429be538bcaa12b85070291015c93c"},{"version":"f1ae7e612f0c9eeb7048ac5f1aff7f41530ac9e16c09f07222ce0ffc53a701d7","signature":"b588c79ad81da487269aae9acf2d6281393ea57c0a2fa9b0c575af1b24993195"},{"version":"98b2be0257b290cd82d28207558424ccca1cbebd2f67b9d68205a2d9e3311785","signature":"5c4c406b51f29fbca47cb1a4baf867749c6530d142b0accb617a2dc2a8eca420"},{"version":"738fccb61792698f202ad9902216584de09511cdd603349a1a164de9b89518f5","signature":"42946e6e6ba4988b211e69c1ac5f59b6b71f0ccb0230f0f810a8b13a3b3478c3"},{"version":"f81a07114fdf317c63b63299df9599f2a4f3dae2d1109d661eb3752847c8d489","signature":"1ae383696c04c657ce3b41ce41534552d211448ae8bcdffcdd5b340e33a72f1f"},{"version":"63aa5ef7c1fad8d6758f25e968e57a4973582866fa08a3429761597653eb39f2","signature":"90868a9dbee7b9bc070954b4ad33a82a92c88eaa7a268c47f7e9ea026b3b6701"},"5a323df23f74a335e727b2273b69b49a93c877c930a91d59c219dd69a8361ace",{"version":"05b2c94345341a306f1635d9cc7f42e2af5df9d9a5f9d8399e1560e774566e50","signature":"83445828a83032381e84a79907ce961202d2483f6104a933c6ff95adaeda4859"},{"version":"6ac3496933bea2ed5aa344ce23d763219b5118f3b35df3b5f671513a4323df67","signature":"c430c5bf72f9e78e0ff461b1b3e0fce9d1970af9b9b4e925194ca762b2235ce8"},{"version":"49ac3ac2280c77813ab79de1943f256014ce0a4d977d5c7b9da645b5a9126c7e","signature":"e6a17eadf733c8299ee79a7f46f6182a44868f4e0fee8d46515644733c2110e1"},{"version":"21259e4ae26bc1386e6969a3072d6ec31dc52ad81a07b151d66d9cb9ab81cb37","signature":"8d026131ea0de6e2f510a61159b47dab65731fe7a37a23586d7dc2b4e3841b80"},"51bebf61fbc48fc20666609c19f96a2ea65bcffc4971d2c0c8d5f87e94dfa59b",{"version":"aa3739ab80ddd103e094a807e4a94bd9c15afc4a05f23ac79f81770b968ac5a7","signature":"ae71a61ac559d8d085a97eb76c42d914513b10da2209de06e3ecd1671cf39e74"},{"version":"2faa34a7608af115c11431fc15842c10bbf8eb7b7be6f593f17d56c3622f4bf0","signature":"3552b2ba4bda7de930003711d0874f48324791c7d8efc51b1aa61a96f11c86dc"},{"version":"407658a55dd33cb86ab116fddf7e0ec138be2372d8053bd2bdd59f1d6768abc6","signature":"257d05495a8e8df96d7e7a04d7a5e70c3ae3fa50210627101ef338fbe6977bfc"},{"version":"038353dc059db1b2aee89acea285136ae3e6980b7a00dfa055749a8c9c69446d","signature":"b7709a3dec1646716743c48607c957deec7a1fb605c0d4af2b316d5eff245d99"},"4ed6a5342d4b3c2ee3362fd92bf0d6accb987c61fc80390ea5a97aa7662a34a5",{"version":"7de4f8be457ffdffe588d67d670f6045f3fa1f7b58943afcaec4a089ff6fc698","signature":"830ba4766289f1457accd84b667a6c2396c813438aca3a99ece50f725486e2e4"},"4a4d3ca432267ee2c3328ccd9bc9cce63926aab43efc211f12f2861a0128fe0b",{"version":"a442edfb09e9d8cd13a32d55897c3b9515d2daa28aa53e29e472da023dafa0d1","signature":"6729bc8eb3af7e9bcdd36159522af8083ec731185c19f96c963195916fc5c869"},"92993add08cef6c9b4022dc996971fa7a19f9db3cff8505801ab4b84b3763b5b",{"version":"78be2b57be63cdcf2ee702b1b83b47bbad2e10e775d894be94cb762fe69e5555","signature":"afb2e6e85790c7855b55f3a58f8d860b9a1d7a0b3a34d94328f4143c3e4b4e91"},"5373e92103b4bac997c1c5a56fb20c33db307d23d7222a87e1c1d412aa778c89",{"version":"a9507fd60c9bc85b529ad7fc61d0bb21d4b16dd91c0a522e08a00e5bd56471dc","signature":"aff3fd7929f362932abd897cf00878b9819acc27f645716092d9bf07a8f003db"},{"version":"f44eb61ba2b51021075d1895f65a610ebd4882c9ca13bfc5861c2a89750a5d7d","signature":"7e8b64a70ab7e9cb729d6bff1994da904701cdfd25cb13049e50d1627f5bc9e1"},{"version":"a8f115257802c52b66411b0f4fda408e46c12428e9d16fab24122b4ff42f6fa6","signature":"f87eb054e1ab71f99472e12cb77886cc56cb911df7852d6bbbc8ecf765901069"},{"version":"fb3f1cc0a373e662def2b5f0df965532c96842b3cdd3c3ddee5e889bbdaf5d4f","signature":"3d083dd91ce180f84e68dd2ef7f1c6363b799670b805b02d002e6c05aa1b426c"},{"version":"641868ca28d751af1921ce8f01cf8920786c7871e62d7af32b8b578708ebbd2d","signature":"d996c12ce493e99109de6ad9dee4f89885826461063edf244bfbdcbff5fbdbc4"},"3cf00f4865bf9824efe9bb20a4433777058b2cd742b31930c80a3192e75ead43",{"version":"61ced83f9f7a85586fc6419d7467894a8e1888ff32d146fefd98f3cb21706575","signature":"3b5ce6a48b971e75d6e6d90202fb657455c3d18d18301049303f2c94f603fc39"},{"version":"630a65d71ba7571e9880f174146ef544d2818cbcf85440869823a3c69bb13438","signature":"6b94342f15fdb0fc1797b6322f198de8ef39ed5c9981c98a2510effe9079798a"},{"version":"0f397304d0d60d06be9e49ff7d18dbfc4a3fa5b3f5d72e08d77c1bf1601bf4f6","signature":"3c7a720fbf1bfe2f28bf9777d68d540e1aebff592052e5a9a53b9b5697e77b1c"},{"version":"c5ca64d66de1620fe27d791be77387b62b242e6813d793ec5b5187bc943d5cea","signature":"de61b835e9138925ef895f9e12b8b59e0ddd4384a27f02dca891b3ef1d4920de"},{"version":"6581f800df7e785c8aab229f06bef765ad781f0bb353091a0f23375694c7891e","signature":"3f52bbda210e42393521dce75b4398bbe385344d4559b1e4f0a0e65f10f11d5d"},"2889a5f3b6a7d9cd1dd50870cfd7d33b44fd5fb2b65a007e7324e4fcbf731981","2889a5f3b6a7d9cd1dd50870cfd7d33b44fd5fb2b65a007e7324e4fcbf731981"],"root":[[78,149]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":99,"outDir":"./","rootDir":"../src","skipLibCheck":true,"target":7,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[73,1],[65,2],[72,3],[66,4],[69,5],[62,1],[64,6],[71,7],[63,8],[54,9],[52,10],[59,11],[77,12],[51,13],[74,14],[75,14],[76,15],[50,16],[80,17],[147,18],[145,19],[83,20],[130,21],[97,22],[146,23],[116,24],[144,25],[118,24],[127,24],[133,26],[110,27],[124,28],[105,29],[85,30],[84,31],[131,32],[102,33],[94,34],[90,35],[139,36],[137,36],[141,36],[140,36],[138,36],[98,37],[100,38],[107,39],[89,40],[111,28],[142,41],[103,35],[96,42],[113,43],[87,44],[126,45],[115,46],[109,27],[92,47],[117,48],[123,28],[122,49],[119,50],[135,51],[121,52],[129,53],[128,53],[143,54],[78,21],[81,55]],"affectedFilesPendingEmit":[[80,49],[79,49],[147,49],[132,49],[145,49],[104,49],[83,49],[130,49],[108,49],[101,49],[93,49],[148,49],[136,49],[97,49],[99,49],[106,49],[88,49],[146,49],[149,49],[95,49],[112,49],[86,49],[125,49],[114,49],[91,49],[116,49],[144,49],[82,49],[118,49],[134,49],[120,49],[127,49],[133,49],[110,49],[124,49],[105,49],[85,49],[84,49],[131,49],[102,49],[94,49],[90,49],[139,49],[137,49],[141,49],[140,49],[138,49],[98,49],[100,49],[107,49],[89,49],[111,49],[142,49],[103,49],[96,49],[113,49],[87,49],[126,49],[115,49],[109,49],[92,49],[117,49],[123,49],[122,49],[119,49],[135,49],[121,49],[129,49],[128,49],[143,49],[78,49],[81,49]],"emitSignatures":[78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149],"version":"5.9.3"}
|
package/dist/index.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ interface GymSpaceConfig {
|
|
|
13
13
|
interface RequestOptions {
|
|
14
14
|
gymId?: string;
|
|
15
15
|
headers?: Record<string, string>;
|
|
16
|
+
skipAuth?: boolean;
|
|
16
17
|
}
|
|
17
18
|
interface PaginationParams {
|
|
18
19
|
limit?: number;
|
|
@@ -1777,7 +1778,14 @@ interface StartOnboardingData {
|
|
|
1777
1778
|
currency: string;
|
|
1778
1779
|
timezone: string;
|
|
1779
1780
|
}
|
|
1781
|
+
declare enum OnboardingCacheStatus {
|
|
1782
|
+
PROCESSING = "PROCESSING",
|
|
1783
|
+
COMPLETED = "COMPLETED",
|
|
1784
|
+
FAILED = "FAILED"
|
|
1785
|
+
}
|
|
1780
1786
|
interface StartOnboardingResponse {
|
|
1787
|
+
status: OnboardingCacheStatus;
|
|
1788
|
+
email: string;
|
|
1781
1789
|
access_token: string;
|
|
1782
1790
|
refresh_token: string;
|
|
1783
1791
|
user: {
|
|
@@ -1786,18 +1794,33 @@ interface StartOnboardingResponse {
|
|
|
1786
1794
|
name: string;
|
|
1787
1795
|
userType: string;
|
|
1788
1796
|
};
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1797
|
+
}
|
|
1798
|
+
interface OnboardingStatusResponse {
|
|
1799
|
+
status: OnboardingCacheStatus;
|
|
1800
|
+
currentStep?: string;
|
|
1801
|
+
progress?: number;
|
|
1802
|
+
message?: string;
|
|
1803
|
+
user?: {
|
|
1804
|
+
id: string;
|
|
1805
|
+
email: string;
|
|
1806
|
+
name: string;
|
|
1807
|
+
userType: string;
|
|
1808
|
+
};
|
|
1809
|
+
organization?: {
|
|
1792
1810
|
id: string;
|
|
1793
1811
|
name: string;
|
|
1794
1812
|
organizationCode: string;
|
|
1795
1813
|
};
|
|
1796
|
-
gym
|
|
1814
|
+
gym?: {
|
|
1797
1815
|
id: string;
|
|
1798
1816
|
name: string;
|
|
1799
1817
|
};
|
|
1800
|
-
|
|
1818
|
+
access_token?: string;
|
|
1819
|
+
refresh_token?: string;
|
|
1820
|
+
lastActiveGymId?: string;
|
|
1821
|
+
lastActiveOrganizationId?: string;
|
|
1822
|
+
error?: string;
|
|
1823
|
+
onboardingStatus?: OnboardingStatus;
|
|
1801
1824
|
}
|
|
1802
1825
|
interface BusinessHours {
|
|
1803
1826
|
open: string;
|
|
@@ -1909,10 +1932,33 @@ interface OnboardingResponse {
|
|
|
1909
1932
|
|
|
1910
1933
|
declare class OnboardingResource extends BaseResource {
|
|
1911
1934
|
/**
|
|
1912
|
-
*
|
|
1913
|
-
*
|
|
1935
|
+
* Start onboarding process (async)
|
|
1936
|
+
* Creates user account and triggers background setup
|
|
1937
|
+
* Returns immediately with PROCESSING status
|
|
1938
|
+
* Use getStatusByEmail() to poll for completion
|
|
1914
1939
|
*/
|
|
1915
1940
|
start(data: StartOnboardingData): Promise<StartOnboardingResponse>;
|
|
1941
|
+
/**
|
|
1942
|
+
* Get onboarding status by email (polling endpoint)
|
|
1943
|
+
* Use this to check if async onboarding setup is complete
|
|
1944
|
+
*
|
|
1945
|
+
* @param email - User email to check status
|
|
1946
|
+
* @returns Status object with PROCESSING, COMPLETED, or FAILED
|
|
1947
|
+
*/
|
|
1948
|
+
getStatusByEmail(email: string): Promise<OnboardingStatusResponse>;
|
|
1949
|
+
/**
|
|
1950
|
+
* Poll for onboarding completion
|
|
1951
|
+
* Automatically polls until status is COMPLETED or FAILED
|
|
1952
|
+
*
|
|
1953
|
+
* @param email - User email
|
|
1954
|
+
* @param options - Polling options
|
|
1955
|
+
* @returns Final status when completed or failed
|
|
1956
|
+
*/
|
|
1957
|
+
waitForCompletion(email: string, options?: {
|
|
1958
|
+
maxAttempts?: number;
|
|
1959
|
+
intervalMs?: number;
|
|
1960
|
+
onProgress?: (attempt: number, status: OnboardingCacheStatus) => void;
|
|
1961
|
+
}): Promise<OnboardingStatusResponse>;
|
|
1916
1962
|
/**
|
|
1917
1963
|
* Updates basic gym settings (step 2 of onboarding)
|
|
1918
1964
|
* Configure basic gym information like name, address, etc.
|
|
@@ -1928,7 +1974,7 @@ declare class OnboardingResource extends BaseResource {
|
|
|
1928
1974
|
*/
|
|
1929
1975
|
completeSetup(data: CompleteGuidedSetupData): Promise<OnboardingResponse>;
|
|
1930
1976
|
/**
|
|
1931
|
-
* Get current onboarding status
|
|
1977
|
+
* Get current onboarding status by gym ID
|
|
1932
1978
|
* Check progress and next steps
|
|
1933
1979
|
*/
|
|
1934
1980
|
getStatus(gymId: string): Promise<OnboardingStatus>;
|
|
@@ -3796,4 +3842,4 @@ declare class NetworkError extends GymSpaceError {
|
|
|
3796
3842
|
constructor(message?: string);
|
|
3797
3843
|
}
|
|
3798
3844
|
|
|
3799
|
-
export { type ActivateRenewalDto, ActivitiesResource, type Activity, type ActivityNotification, type ActivityPlanRestriction, type ActivityStats, type ActivityStatsParams, AdminCatalogResource, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, type AssignTagsDto, type AssignTagsResponse, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BulkLogsResponse, type BulkLogsResponseDto, type BulkMessageLog, type BulkMessageLogDto, type BulkMessageResult, type BulkMessageResultDto, BulkMessagingResource, type BulkTemplate, type BusinessHours, type CancelContractDto, type CancelSubscriptionDto, type CancellationAnalytics, type CatalogActivity, type CatalogGym, type CatalogHeroSection, type CatalogLead, type CatalogLocation, type CatalogPlan, type CatalogResponse, type CatalogSocialMedia, type ChangePasswordDto, type ChangePasswordResponseDto, type CheckIn, type CheckInDetail, type CheckInListResponse, type CheckInStats, type CheckInSystemFeatures, type CheckIns, type CheckInsList, CheckInsResource, type CheckLimitResponse, type CityWithGyms, type Client, type ClientCheckInHistory, type ClientManagementFeatures, type ClientStat, type ClientStats, type ClientTag, type ClientTagsResponse, ClientsResource, type CollaboratorReportDto, type CollaboratorRoleDto, CollaboratorsResource, type CommissionCalculationDto, CommissionCalculationsResource, CommissionChangeType, type CommissionComparisonDto, type CommissionConfigDto, CommissionConfigResource, CommissionEntityType, type CommissionFiltersDto, type CommissionHistoryDto, type CommissionHistoryFiltersDto, CommissionPromotionsResource, CommissionReportsResource, type CommissionRuleDto, type CommissionRuleFiltersDto, CommissionRuleType, CommissionRulesResource, type CommissionSimulationDto, CommissionStatus, type CommissionSummaryDto, type CommissionSummaryReportDto, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, type ContractLifecycleEvent, type ContractSettings, ContractsResource, type ContractsRevenue, type CreateActivityDto, type CreateActivityNotificationDto, type CreateBulkTemplateDto, type CreateCheckInDto, type CreateClientDto, type CreateCommissionConfigDto, type CreateCommissionRuleDto, type CreateContractDto, type CreateGymDto, type CreateLeadDto, type CreateMembershipPlanDto, type CreatePaymentMethodDto, type CreateProductCategoryDto, type CreateProductDto, type CreateSaleDto, type CreateServiceDto, type CreateSubscriptionPlanDto, type CreateSupplierDto, type CreateTagDto, type CreateTemplateDto, type CreateWhatsAppConfigDto, type CurrentSessionResponse, type CurrentlyInGymResponse, type CustomerSalesReport, DashboardResource, type DashboardStats, type DateRangeParams, type DaySchedule, type Debts, type DeleteActivityParams, type DeleteTagResponse, type DisconnectResponse, type EligibleClient, type EligibleClientsResponse, type ExpiringContract, type FileResponseDto, FilesResource, type FormattedSchedule, type FreezeContractDto, type GenerateAIMessageDto, type GenerateAIMessageParams, type GenerateAIMessageResponse, type GenerateAIMessageResponseDto, type GetBulkLogsQueryDto, type GetCheckInStatsParams, type GetClientCheckInHistoryParams, type GetContractsParams, type GetGymInvitationsParams, type GetMembershipPlansParams, type GetTagClientsParams, type Gym, type GymAmenities, type GymCatalog, type GymSchedule, type GymSettings, type GymSocialMedia, type GymSpaceConfig, GymSpaceError, GymSpaceSdk, type GymStats, GymsResource, HealthResource, type HealthResponse, type InitializeConnectionResponse, type InventorySettings, type InvitationValidationResponse, InvitationsResource, type LeadFiltersDto, LeadGender, type LeadSubmissionResponse, type ListContactsResponse, type LoginDto, type LoginResponseDto, type MembershipManagementFeatures, type MembershipPlan, type MembershipPlanStats, MembershipPlansResource, NetworkError, type NewClients, NotFoundError, type NotificationSettings, OnboardingResource, type OnboardingResponse, type OnboardingStatus, OnboardingStep, type Organization, type OrganizationAdminDetails, type OrganizationStats, type OrganizationWithDetails, OrganizationsResource, type PaginatedCommissionResult, type PaginatedResponse, type PaginatedResponseDto, type PaginationParams, type PaginationQueryDto, type PaySaleDto, type PaymentMethod, type PaymentMethodStats, PaymentMethodsResource, type PermissionsGroup, type PreviewTemplateResponse, type PriceDto, type PricingDto, type Product, type ProductCategory, ProductsResource, type PromotionReportDto, type PromotionReportFiltersDto, PublicCatalogResource, type ReactivateContractDto, type ReadyResponse, type RegisterCollaboratorDto, type RegisterOwnerDto, type RejectedClient, type RejectedClientDto, type RemoveTagsDto, type RemoveTagsResponse, type RenewContractDto, type ReorderCommissionRulesDto, type ReportFiltersDto, type RequestOptions, type RequestPasswordResetDto, type RequestPasswordResetResponseDto, type ResendResetCodeDto, type ResendResetCodeResponseDto, type ResendVerificationDto, type ResetPasswordDto, type ResetPasswordResponseDto, type ResumeContractDto, RolesResource, type RuleCriteria, type RuleReportDto, type Sale, type SaleItem, type SaleItemDto, SalesResource, type SalesRevenue, type SalesStats, type SearchActivitiesParams, type SearchCatalogParams, type SearchCatalogResponse, type SearchCheckInsParams, type SearchClientsParams, type SearchPaymentMethodsParams, type SearchProductsParams, type SearchSalesParams, type SearchSuppliersParams, type SearchTagsParams, type SearchTemplatesDto, type SearchWhatsAppMessagesDto, type SendBulkMessagesDto, type SendCatalogMessageDto, type SendCatalogMessageResponse, type SendWhatsAppMessageDto, type SentActivityNotification, type SimulateCommissionDto, type SocialMedia, type StartOnboardingData, type StartOnboardingResponse, type StockMovement, type Subscription, type SubscriptionHistoryDto, type SubscriptionPlan, type SubscriptionPlanDto, SubscriptionPlansResource, type SubscriptionStatusDto, SubscriptionsResource, type Supplier, SuppliersResource, type SuppliersStats, type SuspendContractDto, type Tag, type TagClientsResponse, type TagStatsResponse, type TagWithAssignment, TagsResource, type TimeSlot, type TopSellingProduct, type UpdateActivityDto, type UpdateActivityNotificationDto, type UpdateBulkTemplateDto, type UpdateCatalogConfigDto, type UpdateClientDto, type UpdateCommissionConfigDto, type UpdateCommissionRuleDto, type UpdateGymContractSettingsDto, type UpdateGymDto, type UpdateGymInventorySettingsDto, type UpdateGymScheduleDto, type UpdateGymSettingsData, type UpdateGymSocialMediaDto, type UpdateMembershipPlanDto, type UpdateOrganizationDto, type UpdatePaymentMethodDto, type UpdatePaymentStatusDto, type UpdateProductCategoryDto, type UpdateProductDto, type UpdateProfileDto, type UpdateSaleDto, type UpdateStockDto, type UpdateSubscriptionPlanDto, type UpdateSupplierDto, type UpdateTagDto, type UpdateTemplateDto, type UpdateWhatsAppConfigDto, type UpgradeSubscriptionDto, type UploadAssetDto, type UploadFileDto, type UserProfileDto, UsersResource, ValidationError, type VerifyEmailDto, type VerifyResetCodeDto, type VerifyResetCodeResponseDto, type WeeklySchedule, type WhatsAppConfig, type WhatsAppMessage, WhatsAppResource, type WhatsAppTemplate, WhatsAppTemplatesResource };
|
|
3845
|
+
export { type ActivateRenewalDto, ActivitiesResource, type Activity, type ActivityNotification, type ActivityPlanRestriction, type ActivityStats, type ActivityStatsParams, AdminCatalogResource, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, type AssignTagsDto, type AssignTagsResponse, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BulkLogsResponse, type BulkLogsResponseDto, type BulkMessageLog, type BulkMessageLogDto, type BulkMessageResult, type BulkMessageResultDto, BulkMessagingResource, type BulkTemplate, type BusinessHours, type CancelContractDto, type CancelSubscriptionDto, type CancellationAnalytics, type CatalogActivity, type CatalogGym, type CatalogHeroSection, type CatalogLead, type CatalogLocation, type CatalogPlan, type CatalogResponse, type CatalogSocialMedia, type ChangePasswordDto, type ChangePasswordResponseDto, type CheckIn, type CheckInDetail, type CheckInListResponse, type CheckInStats, type CheckInSystemFeatures, type CheckIns, type CheckInsList, CheckInsResource, type CheckLimitResponse, type CityWithGyms, type Client, type ClientCheckInHistory, type ClientManagementFeatures, type ClientStat, type ClientStats, type ClientTag, type ClientTagsResponse, ClientsResource, type CollaboratorReportDto, type CollaboratorRoleDto, CollaboratorsResource, type CommissionCalculationDto, CommissionCalculationsResource, CommissionChangeType, type CommissionComparisonDto, type CommissionConfigDto, CommissionConfigResource, CommissionEntityType, type CommissionFiltersDto, type CommissionHistoryDto, type CommissionHistoryFiltersDto, CommissionPromotionsResource, CommissionReportsResource, type CommissionRuleDto, type CommissionRuleFiltersDto, CommissionRuleType, CommissionRulesResource, type CommissionSimulationDto, CommissionStatus, type CommissionSummaryDto, type CommissionSummaryReportDto, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, type ContractLifecycleEvent, type ContractSettings, ContractsResource, type ContractsRevenue, type CreateActivityDto, type CreateActivityNotificationDto, type CreateBulkTemplateDto, type CreateCheckInDto, type CreateClientDto, type CreateCommissionConfigDto, type CreateCommissionRuleDto, type CreateContractDto, type CreateGymDto, type CreateLeadDto, type CreateMembershipPlanDto, type CreatePaymentMethodDto, type CreateProductCategoryDto, type CreateProductDto, type CreateSaleDto, type CreateServiceDto, type CreateSubscriptionPlanDto, type CreateSupplierDto, type CreateTagDto, type CreateTemplateDto, type CreateWhatsAppConfigDto, type CurrentSessionResponse, type CurrentlyInGymResponse, type CustomerSalesReport, DashboardResource, type DashboardStats, type DateRangeParams, type DaySchedule, type Debts, type DeleteActivityParams, type DeleteTagResponse, type DisconnectResponse, type EligibleClient, type EligibleClientsResponse, type ExpiringContract, type FileResponseDto, FilesResource, type FormattedSchedule, type FreezeContractDto, type GenerateAIMessageDto, type GenerateAIMessageParams, type GenerateAIMessageResponse, type GenerateAIMessageResponseDto, type GetBulkLogsQueryDto, type GetCheckInStatsParams, type GetClientCheckInHistoryParams, type GetContractsParams, type GetGymInvitationsParams, type GetMembershipPlansParams, type GetTagClientsParams, type Gym, type GymAmenities, type GymCatalog, type GymSchedule, type GymSettings, type GymSocialMedia, type GymSpaceConfig, GymSpaceError, GymSpaceSdk, type GymStats, GymsResource, HealthResource, type HealthResponse, type InitializeConnectionResponse, type InventorySettings, type InvitationValidationResponse, InvitationsResource, type LeadFiltersDto, LeadGender, type LeadSubmissionResponse, type ListContactsResponse, type LoginDto, type LoginResponseDto, type MembershipManagementFeatures, type MembershipPlan, type MembershipPlanStats, MembershipPlansResource, NetworkError, type NewClients, NotFoundError, type NotificationSettings, OnboardingCacheStatus, OnboardingResource, type OnboardingResponse, type OnboardingStatus, type OnboardingStatusResponse, OnboardingStep, type Organization, type OrganizationAdminDetails, type OrganizationStats, type OrganizationWithDetails, OrganizationsResource, type PaginatedCommissionResult, type PaginatedResponse, type PaginatedResponseDto, type PaginationParams, type PaginationQueryDto, type PaySaleDto, type PaymentMethod, type PaymentMethodStats, PaymentMethodsResource, type PermissionsGroup, type PreviewTemplateResponse, type PriceDto, type PricingDto, type Product, type ProductCategory, ProductsResource, type PromotionReportDto, type PromotionReportFiltersDto, PublicCatalogResource, type ReactivateContractDto, type ReadyResponse, type RegisterCollaboratorDto, type RegisterOwnerDto, type RejectedClient, type RejectedClientDto, type RemoveTagsDto, type RemoveTagsResponse, type RenewContractDto, type ReorderCommissionRulesDto, type ReportFiltersDto, type RequestOptions, type RequestPasswordResetDto, type RequestPasswordResetResponseDto, type ResendResetCodeDto, type ResendResetCodeResponseDto, type ResendVerificationDto, type ResetPasswordDto, type ResetPasswordResponseDto, type ResumeContractDto, RolesResource, type RuleCriteria, type RuleReportDto, type Sale, type SaleItem, type SaleItemDto, SalesResource, type SalesRevenue, type SalesStats, type SearchActivitiesParams, type SearchCatalogParams, type SearchCatalogResponse, type SearchCheckInsParams, type SearchClientsParams, type SearchPaymentMethodsParams, type SearchProductsParams, type SearchSalesParams, type SearchSuppliersParams, type SearchTagsParams, type SearchTemplatesDto, type SearchWhatsAppMessagesDto, type SendBulkMessagesDto, type SendCatalogMessageDto, type SendCatalogMessageResponse, type SendWhatsAppMessageDto, type SentActivityNotification, type SimulateCommissionDto, type SocialMedia, type StartOnboardingData, type StartOnboardingResponse, type StockMovement, type Subscription, type SubscriptionHistoryDto, type SubscriptionPlan, type SubscriptionPlanDto, SubscriptionPlansResource, type SubscriptionStatusDto, SubscriptionsResource, type Supplier, SuppliersResource, type SuppliersStats, type SuspendContractDto, type Tag, type TagClientsResponse, type TagStatsResponse, type TagWithAssignment, TagsResource, type TimeSlot, type TopSellingProduct, type UpdateActivityDto, type UpdateActivityNotificationDto, type UpdateBulkTemplateDto, type UpdateCatalogConfigDto, type UpdateClientDto, type UpdateCommissionConfigDto, type UpdateCommissionRuleDto, type UpdateGymContractSettingsDto, type UpdateGymDto, type UpdateGymInventorySettingsDto, type UpdateGymScheduleDto, type UpdateGymSettingsData, type UpdateGymSocialMediaDto, type UpdateMembershipPlanDto, type UpdateOrganizationDto, type UpdatePaymentMethodDto, type UpdatePaymentStatusDto, type UpdateProductCategoryDto, type UpdateProductDto, type UpdateProfileDto, type UpdateSaleDto, type UpdateStockDto, type UpdateSubscriptionPlanDto, type UpdateSupplierDto, type UpdateTagDto, type UpdateTemplateDto, type UpdateWhatsAppConfigDto, type UpgradeSubscriptionDto, type UploadAssetDto, type UploadFileDto, type UserProfileDto, UsersResource, ValidationError, type VerifyEmailDto, type VerifyResetCodeDto, type VerifyResetCodeResponseDto, type WeeklySchedule, type WhatsAppConfig, type WhatsAppMessage, WhatsAppResource, type WhatsAppTemplate, WhatsAppTemplatesResource };
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ interface GymSpaceConfig {
|
|
|
13
13
|
interface RequestOptions {
|
|
14
14
|
gymId?: string;
|
|
15
15
|
headers?: Record<string, string>;
|
|
16
|
+
skipAuth?: boolean;
|
|
16
17
|
}
|
|
17
18
|
interface PaginationParams {
|
|
18
19
|
limit?: number;
|
|
@@ -1777,7 +1778,14 @@ interface StartOnboardingData {
|
|
|
1777
1778
|
currency: string;
|
|
1778
1779
|
timezone: string;
|
|
1779
1780
|
}
|
|
1781
|
+
declare enum OnboardingCacheStatus {
|
|
1782
|
+
PROCESSING = "PROCESSING",
|
|
1783
|
+
COMPLETED = "COMPLETED",
|
|
1784
|
+
FAILED = "FAILED"
|
|
1785
|
+
}
|
|
1780
1786
|
interface StartOnboardingResponse {
|
|
1787
|
+
status: OnboardingCacheStatus;
|
|
1788
|
+
email: string;
|
|
1781
1789
|
access_token: string;
|
|
1782
1790
|
refresh_token: string;
|
|
1783
1791
|
user: {
|
|
@@ -1786,18 +1794,33 @@ interface StartOnboardingResponse {
|
|
|
1786
1794
|
name: string;
|
|
1787
1795
|
userType: string;
|
|
1788
1796
|
};
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1797
|
+
}
|
|
1798
|
+
interface OnboardingStatusResponse {
|
|
1799
|
+
status: OnboardingCacheStatus;
|
|
1800
|
+
currentStep?: string;
|
|
1801
|
+
progress?: number;
|
|
1802
|
+
message?: string;
|
|
1803
|
+
user?: {
|
|
1804
|
+
id: string;
|
|
1805
|
+
email: string;
|
|
1806
|
+
name: string;
|
|
1807
|
+
userType: string;
|
|
1808
|
+
};
|
|
1809
|
+
organization?: {
|
|
1792
1810
|
id: string;
|
|
1793
1811
|
name: string;
|
|
1794
1812
|
organizationCode: string;
|
|
1795
1813
|
};
|
|
1796
|
-
gym
|
|
1814
|
+
gym?: {
|
|
1797
1815
|
id: string;
|
|
1798
1816
|
name: string;
|
|
1799
1817
|
};
|
|
1800
|
-
|
|
1818
|
+
access_token?: string;
|
|
1819
|
+
refresh_token?: string;
|
|
1820
|
+
lastActiveGymId?: string;
|
|
1821
|
+
lastActiveOrganizationId?: string;
|
|
1822
|
+
error?: string;
|
|
1823
|
+
onboardingStatus?: OnboardingStatus;
|
|
1801
1824
|
}
|
|
1802
1825
|
interface BusinessHours {
|
|
1803
1826
|
open: string;
|
|
@@ -1909,10 +1932,33 @@ interface OnboardingResponse {
|
|
|
1909
1932
|
|
|
1910
1933
|
declare class OnboardingResource extends BaseResource {
|
|
1911
1934
|
/**
|
|
1912
|
-
*
|
|
1913
|
-
*
|
|
1935
|
+
* Start onboarding process (async)
|
|
1936
|
+
* Creates user account and triggers background setup
|
|
1937
|
+
* Returns immediately with PROCESSING status
|
|
1938
|
+
* Use getStatusByEmail() to poll for completion
|
|
1914
1939
|
*/
|
|
1915
1940
|
start(data: StartOnboardingData): Promise<StartOnboardingResponse>;
|
|
1941
|
+
/**
|
|
1942
|
+
* Get onboarding status by email (polling endpoint)
|
|
1943
|
+
* Use this to check if async onboarding setup is complete
|
|
1944
|
+
*
|
|
1945
|
+
* @param email - User email to check status
|
|
1946
|
+
* @returns Status object with PROCESSING, COMPLETED, or FAILED
|
|
1947
|
+
*/
|
|
1948
|
+
getStatusByEmail(email: string): Promise<OnboardingStatusResponse>;
|
|
1949
|
+
/**
|
|
1950
|
+
* Poll for onboarding completion
|
|
1951
|
+
* Automatically polls until status is COMPLETED or FAILED
|
|
1952
|
+
*
|
|
1953
|
+
* @param email - User email
|
|
1954
|
+
* @param options - Polling options
|
|
1955
|
+
* @returns Final status when completed or failed
|
|
1956
|
+
*/
|
|
1957
|
+
waitForCompletion(email: string, options?: {
|
|
1958
|
+
maxAttempts?: number;
|
|
1959
|
+
intervalMs?: number;
|
|
1960
|
+
onProgress?: (attempt: number, status: OnboardingCacheStatus) => void;
|
|
1961
|
+
}): Promise<OnboardingStatusResponse>;
|
|
1916
1962
|
/**
|
|
1917
1963
|
* Updates basic gym settings (step 2 of onboarding)
|
|
1918
1964
|
* Configure basic gym information like name, address, etc.
|
|
@@ -1928,7 +1974,7 @@ declare class OnboardingResource extends BaseResource {
|
|
|
1928
1974
|
*/
|
|
1929
1975
|
completeSetup(data: CompleteGuidedSetupData): Promise<OnboardingResponse>;
|
|
1930
1976
|
/**
|
|
1931
|
-
* Get current onboarding status
|
|
1977
|
+
* Get current onboarding status by gym ID
|
|
1932
1978
|
* Check progress and next steps
|
|
1933
1979
|
*/
|
|
1934
1980
|
getStatus(gymId: string): Promise<OnboardingStatus>;
|
|
@@ -3796,4 +3842,4 @@ declare class NetworkError extends GymSpaceError {
|
|
|
3796
3842
|
constructor(message?: string);
|
|
3797
3843
|
}
|
|
3798
3844
|
|
|
3799
|
-
export { type ActivateRenewalDto, ActivitiesResource, type Activity, type ActivityNotification, type ActivityPlanRestriction, type ActivityStats, type ActivityStatsParams, AdminCatalogResource, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, type AssignTagsDto, type AssignTagsResponse, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BulkLogsResponse, type BulkLogsResponseDto, type BulkMessageLog, type BulkMessageLogDto, type BulkMessageResult, type BulkMessageResultDto, BulkMessagingResource, type BulkTemplate, type BusinessHours, type CancelContractDto, type CancelSubscriptionDto, type CancellationAnalytics, type CatalogActivity, type CatalogGym, type CatalogHeroSection, type CatalogLead, type CatalogLocation, type CatalogPlan, type CatalogResponse, type CatalogSocialMedia, type ChangePasswordDto, type ChangePasswordResponseDto, type CheckIn, type CheckInDetail, type CheckInListResponse, type CheckInStats, type CheckInSystemFeatures, type CheckIns, type CheckInsList, CheckInsResource, type CheckLimitResponse, type CityWithGyms, type Client, type ClientCheckInHistory, type ClientManagementFeatures, type ClientStat, type ClientStats, type ClientTag, type ClientTagsResponse, ClientsResource, type CollaboratorReportDto, type CollaboratorRoleDto, CollaboratorsResource, type CommissionCalculationDto, CommissionCalculationsResource, CommissionChangeType, type CommissionComparisonDto, type CommissionConfigDto, CommissionConfigResource, CommissionEntityType, type CommissionFiltersDto, type CommissionHistoryDto, type CommissionHistoryFiltersDto, CommissionPromotionsResource, CommissionReportsResource, type CommissionRuleDto, type CommissionRuleFiltersDto, CommissionRuleType, CommissionRulesResource, type CommissionSimulationDto, CommissionStatus, type CommissionSummaryDto, type CommissionSummaryReportDto, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, type ContractLifecycleEvent, type ContractSettings, ContractsResource, type ContractsRevenue, type CreateActivityDto, type CreateActivityNotificationDto, type CreateBulkTemplateDto, type CreateCheckInDto, type CreateClientDto, type CreateCommissionConfigDto, type CreateCommissionRuleDto, type CreateContractDto, type CreateGymDto, type CreateLeadDto, type CreateMembershipPlanDto, type CreatePaymentMethodDto, type CreateProductCategoryDto, type CreateProductDto, type CreateSaleDto, type CreateServiceDto, type CreateSubscriptionPlanDto, type CreateSupplierDto, type CreateTagDto, type CreateTemplateDto, type CreateWhatsAppConfigDto, type CurrentSessionResponse, type CurrentlyInGymResponse, type CustomerSalesReport, DashboardResource, type DashboardStats, type DateRangeParams, type DaySchedule, type Debts, type DeleteActivityParams, type DeleteTagResponse, type DisconnectResponse, type EligibleClient, type EligibleClientsResponse, type ExpiringContract, type FileResponseDto, FilesResource, type FormattedSchedule, type FreezeContractDto, type GenerateAIMessageDto, type GenerateAIMessageParams, type GenerateAIMessageResponse, type GenerateAIMessageResponseDto, type GetBulkLogsQueryDto, type GetCheckInStatsParams, type GetClientCheckInHistoryParams, type GetContractsParams, type GetGymInvitationsParams, type GetMembershipPlansParams, type GetTagClientsParams, type Gym, type GymAmenities, type GymCatalog, type GymSchedule, type GymSettings, type GymSocialMedia, type GymSpaceConfig, GymSpaceError, GymSpaceSdk, type GymStats, GymsResource, HealthResource, type HealthResponse, type InitializeConnectionResponse, type InventorySettings, type InvitationValidationResponse, InvitationsResource, type LeadFiltersDto, LeadGender, type LeadSubmissionResponse, type ListContactsResponse, type LoginDto, type LoginResponseDto, type MembershipManagementFeatures, type MembershipPlan, type MembershipPlanStats, MembershipPlansResource, NetworkError, type NewClients, NotFoundError, type NotificationSettings, OnboardingResource, type OnboardingResponse, type OnboardingStatus, OnboardingStep, type Organization, type OrganizationAdminDetails, type OrganizationStats, type OrganizationWithDetails, OrganizationsResource, type PaginatedCommissionResult, type PaginatedResponse, type PaginatedResponseDto, type PaginationParams, type PaginationQueryDto, type PaySaleDto, type PaymentMethod, type PaymentMethodStats, PaymentMethodsResource, type PermissionsGroup, type PreviewTemplateResponse, type PriceDto, type PricingDto, type Product, type ProductCategory, ProductsResource, type PromotionReportDto, type PromotionReportFiltersDto, PublicCatalogResource, type ReactivateContractDto, type ReadyResponse, type RegisterCollaboratorDto, type RegisterOwnerDto, type RejectedClient, type RejectedClientDto, type RemoveTagsDto, type RemoveTagsResponse, type RenewContractDto, type ReorderCommissionRulesDto, type ReportFiltersDto, type RequestOptions, type RequestPasswordResetDto, type RequestPasswordResetResponseDto, type ResendResetCodeDto, type ResendResetCodeResponseDto, type ResendVerificationDto, type ResetPasswordDto, type ResetPasswordResponseDto, type ResumeContractDto, RolesResource, type RuleCriteria, type RuleReportDto, type Sale, type SaleItem, type SaleItemDto, SalesResource, type SalesRevenue, type SalesStats, type SearchActivitiesParams, type SearchCatalogParams, type SearchCatalogResponse, type SearchCheckInsParams, type SearchClientsParams, type SearchPaymentMethodsParams, type SearchProductsParams, type SearchSalesParams, type SearchSuppliersParams, type SearchTagsParams, type SearchTemplatesDto, type SearchWhatsAppMessagesDto, type SendBulkMessagesDto, type SendCatalogMessageDto, type SendCatalogMessageResponse, type SendWhatsAppMessageDto, type SentActivityNotification, type SimulateCommissionDto, type SocialMedia, type StartOnboardingData, type StartOnboardingResponse, type StockMovement, type Subscription, type SubscriptionHistoryDto, type SubscriptionPlan, type SubscriptionPlanDto, SubscriptionPlansResource, type SubscriptionStatusDto, SubscriptionsResource, type Supplier, SuppliersResource, type SuppliersStats, type SuspendContractDto, type Tag, type TagClientsResponse, type TagStatsResponse, type TagWithAssignment, TagsResource, type TimeSlot, type TopSellingProduct, type UpdateActivityDto, type UpdateActivityNotificationDto, type UpdateBulkTemplateDto, type UpdateCatalogConfigDto, type UpdateClientDto, type UpdateCommissionConfigDto, type UpdateCommissionRuleDto, type UpdateGymContractSettingsDto, type UpdateGymDto, type UpdateGymInventorySettingsDto, type UpdateGymScheduleDto, type UpdateGymSettingsData, type UpdateGymSocialMediaDto, type UpdateMembershipPlanDto, type UpdateOrganizationDto, type UpdatePaymentMethodDto, type UpdatePaymentStatusDto, type UpdateProductCategoryDto, type UpdateProductDto, type UpdateProfileDto, type UpdateSaleDto, type UpdateStockDto, type UpdateSubscriptionPlanDto, type UpdateSupplierDto, type UpdateTagDto, type UpdateTemplateDto, type UpdateWhatsAppConfigDto, type UpgradeSubscriptionDto, type UploadAssetDto, type UploadFileDto, type UserProfileDto, UsersResource, ValidationError, type VerifyEmailDto, type VerifyResetCodeDto, type VerifyResetCodeResponseDto, type WeeklySchedule, type WhatsAppConfig, type WhatsAppMessage, WhatsAppResource, type WhatsAppTemplate, WhatsAppTemplatesResource };
|
|
3845
|
+
export { type ActivateRenewalDto, ActivitiesResource, type Activity, type ActivityNotification, type ActivityPlanRestriction, type ActivityStats, type ActivityStatsParams, AdminCatalogResource, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, type AssignTagsDto, type AssignTagsResponse, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BulkLogsResponse, type BulkLogsResponseDto, type BulkMessageLog, type BulkMessageLogDto, type BulkMessageResult, type BulkMessageResultDto, BulkMessagingResource, type BulkTemplate, type BusinessHours, type CancelContractDto, type CancelSubscriptionDto, type CancellationAnalytics, type CatalogActivity, type CatalogGym, type CatalogHeroSection, type CatalogLead, type CatalogLocation, type CatalogPlan, type CatalogResponse, type CatalogSocialMedia, type ChangePasswordDto, type ChangePasswordResponseDto, type CheckIn, type CheckInDetail, type CheckInListResponse, type CheckInStats, type CheckInSystemFeatures, type CheckIns, type CheckInsList, CheckInsResource, type CheckLimitResponse, type CityWithGyms, type Client, type ClientCheckInHistory, type ClientManagementFeatures, type ClientStat, type ClientStats, type ClientTag, type ClientTagsResponse, ClientsResource, type CollaboratorReportDto, type CollaboratorRoleDto, CollaboratorsResource, type CommissionCalculationDto, CommissionCalculationsResource, CommissionChangeType, type CommissionComparisonDto, type CommissionConfigDto, CommissionConfigResource, CommissionEntityType, type CommissionFiltersDto, type CommissionHistoryDto, type CommissionHistoryFiltersDto, CommissionPromotionsResource, CommissionReportsResource, type CommissionRuleDto, type CommissionRuleFiltersDto, CommissionRuleType, CommissionRulesResource, type CommissionSimulationDto, CommissionStatus, type CommissionSummaryDto, type CommissionSummaryReportDto, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, type ContractLifecycleEvent, type ContractSettings, ContractsResource, type ContractsRevenue, type CreateActivityDto, type CreateActivityNotificationDto, type CreateBulkTemplateDto, type CreateCheckInDto, type CreateClientDto, type CreateCommissionConfigDto, type CreateCommissionRuleDto, type CreateContractDto, type CreateGymDto, type CreateLeadDto, type CreateMembershipPlanDto, type CreatePaymentMethodDto, type CreateProductCategoryDto, type CreateProductDto, type CreateSaleDto, type CreateServiceDto, type CreateSubscriptionPlanDto, type CreateSupplierDto, type CreateTagDto, type CreateTemplateDto, type CreateWhatsAppConfigDto, type CurrentSessionResponse, type CurrentlyInGymResponse, type CustomerSalesReport, DashboardResource, type DashboardStats, type DateRangeParams, type DaySchedule, type Debts, type DeleteActivityParams, type DeleteTagResponse, type DisconnectResponse, type EligibleClient, type EligibleClientsResponse, type ExpiringContract, type FileResponseDto, FilesResource, type FormattedSchedule, type FreezeContractDto, type GenerateAIMessageDto, type GenerateAIMessageParams, type GenerateAIMessageResponse, type GenerateAIMessageResponseDto, type GetBulkLogsQueryDto, type GetCheckInStatsParams, type GetClientCheckInHistoryParams, type GetContractsParams, type GetGymInvitationsParams, type GetMembershipPlansParams, type GetTagClientsParams, type Gym, type GymAmenities, type GymCatalog, type GymSchedule, type GymSettings, type GymSocialMedia, type GymSpaceConfig, GymSpaceError, GymSpaceSdk, type GymStats, GymsResource, HealthResource, type HealthResponse, type InitializeConnectionResponse, type InventorySettings, type InvitationValidationResponse, InvitationsResource, type LeadFiltersDto, LeadGender, type LeadSubmissionResponse, type ListContactsResponse, type LoginDto, type LoginResponseDto, type MembershipManagementFeatures, type MembershipPlan, type MembershipPlanStats, MembershipPlansResource, NetworkError, type NewClients, NotFoundError, type NotificationSettings, OnboardingCacheStatus, OnboardingResource, type OnboardingResponse, type OnboardingStatus, type OnboardingStatusResponse, OnboardingStep, type Organization, type OrganizationAdminDetails, type OrganizationStats, type OrganizationWithDetails, OrganizationsResource, type PaginatedCommissionResult, type PaginatedResponse, type PaginatedResponseDto, type PaginationParams, type PaginationQueryDto, type PaySaleDto, type PaymentMethod, type PaymentMethodStats, PaymentMethodsResource, type PermissionsGroup, type PreviewTemplateResponse, type PriceDto, type PricingDto, type Product, type ProductCategory, ProductsResource, type PromotionReportDto, type PromotionReportFiltersDto, PublicCatalogResource, type ReactivateContractDto, type ReadyResponse, type RegisterCollaboratorDto, type RegisterOwnerDto, type RejectedClient, type RejectedClientDto, type RemoveTagsDto, type RemoveTagsResponse, type RenewContractDto, type ReorderCommissionRulesDto, type ReportFiltersDto, type RequestOptions, type RequestPasswordResetDto, type RequestPasswordResetResponseDto, type ResendResetCodeDto, type ResendResetCodeResponseDto, type ResendVerificationDto, type ResetPasswordDto, type ResetPasswordResponseDto, type ResumeContractDto, RolesResource, type RuleCriteria, type RuleReportDto, type Sale, type SaleItem, type SaleItemDto, SalesResource, type SalesRevenue, type SalesStats, type SearchActivitiesParams, type SearchCatalogParams, type SearchCatalogResponse, type SearchCheckInsParams, type SearchClientsParams, type SearchPaymentMethodsParams, type SearchProductsParams, type SearchSalesParams, type SearchSuppliersParams, type SearchTagsParams, type SearchTemplatesDto, type SearchWhatsAppMessagesDto, type SendBulkMessagesDto, type SendCatalogMessageDto, type SendCatalogMessageResponse, type SendWhatsAppMessageDto, type SentActivityNotification, type SimulateCommissionDto, type SocialMedia, type StartOnboardingData, type StartOnboardingResponse, type StockMovement, type Subscription, type SubscriptionHistoryDto, type SubscriptionPlan, type SubscriptionPlanDto, SubscriptionPlansResource, type SubscriptionStatusDto, SubscriptionsResource, type Supplier, SuppliersResource, type SuppliersStats, type SuspendContractDto, type Tag, type TagClientsResponse, type TagStatsResponse, type TagWithAssignment, TagsResource, type TimeSlot, type TopSellingProduct, type UpdateActivityDto, type UpdateActivityNotificationDto, type UpdateBulkTemplateDto, type UpdateCatalogConfigDto, type UpdateClientDto, type UpdateCommissionConfigDto, type UpdateCommissionRuleDto, type UpdateGymContractSettingsDto, type UpdateGymDto, type UpdateGymInventorySettingsDto, type UpdateGymScheduleDto, type UpdateGymSettingsData, type UpdateGymSocialMediaDto, type UpdateMembershipPlanDto, type UpdateOrganizationDto, type UpdatePaymentMethodDto, type UpdatePaymentStatusDto, type UpdateProductCategoryDto, type UpdateProductDto, type UpdateProfileDto, type UpdateSaleDto, type UpdateStockDto, type UpdateSubscriptionPlanDto, type UpdateSupplierDto, type UpdateTagDto, type UpdateTemplateDto, type UpdateWhatsAppConfigDto, type UpgradeSubscriptionDto, type UploadAssetDto, type UploadFileDto, type UserProfileDto, UsersResource, ValidationError, type VerifyEmailDto, type VerifyResetCodeDto, type VerifyResetCodeResponseDto, type WeeklySchedule, type WhatsAppConfig, type WhatsAppMessage, WhatsAppResource, type WhatsAppTemplate, WhatsAppTemplatesResource };
|
package/dist/index.js
CHANGED
|
@@ -89,10 +89,11 @@ var ApiClient = class {
|
|
|
89
89
|
setupInterceptors() {
|
|
90
90
|
this.axiosInstance.interceptors.request.use(
|
|
91
91
|
(config) => {
|
|
92
|
-
|
|
92
|
+
const skipAuth = config.skipAuth;
|
|
93
|
+
if (this.config.apiKey && config.headers && !skipAuth) {
|
|
93
94
|
config.headers["Authorization"] = `Bearer ${this.config.apiKey}`;
|
|
94
95
|
}
|
|
95
|
-
if (this.refreshToken && this.config.apiKey && config.headers) {
|
|
96
|
+
if (this.refreshToken && this.config.apiKey && config.headers && !skipAuth) {
|
|
96
97
|
config.headers["X-Refresh-Token"] = this.refreshToken;
|
|
97
98
|
}
|
|
98
99
|
return config;
|
|
@@ -171,12 +172,14 @@ var ApiClient = class {
|
|
|
171
172
|
return { headers };
|
|
172
173
|
}
|
|
173
174
|
async request(method, path, data, options) {
|
|
174
|
-
const { headers, ...axiosConfig } = options || {};
|
|
175
|
+
const { headers, skipAuth, ...axiosConfig } = options || {};
|
|
175
176
|
const config = {
|
|
176
177
|
method,
|
|
177
178
|
url: path,
|
|
178
179
|
...this.mergeOptions({ headers }),
|
|
179
|
-
...axiosConfig
|
|
180
|
+
...axiosConfig,
|
|
181
|
+
skipAuth
|
|
182
|
+
// Pass skipAuth flag to interceptor
|
|
180
183
|
};
|
|
181
184
|
if (data && ["POST", "PUT", "PATCH"].includes(method.toUpperCase())) {
|
|
182
185
|
config.data = data;
|
|
@@ -1074,19 +1077,80 @@ var HealthResource = class extends BaseResource {
|
|
|
1074
1077
|
}
|
|
1075
1078
|
};
|
|
1076
1079
|
|
|
1080
|
+
// src/models/onboarding.ts
|
|
1081
|
+
var OnboardingCacheStatus = /* @__PURE__ */ ((OnboardingCacheStatus2) => {
|
|
1082
|
+
OnboardingCacheStatus2["PROCESSING"] = "PROCESSING";
|
|
1083
|
+
OnboardingCacheStatus2["COMPLETED"] = "COMPLETED";
|
|
1084
|
+
OnboardingCacheStatus2["FAILED"] = "FAILED";
|
|
1085
|
+
return OnboardingCacheStatus2;
|
|
1086
|
+
})(OnboardingCacheStatus || {});
|
|
1087
|
+
var OnboardingStep = /* @__PURE__ */ ((OnboardingStep2) => {
|
|
1088
|
+
OnboardingStep2["ACCOUNT_CREATED"] = "account_created";
|
|
1089
|
+
OnboardingStep2["GYM_SETTINGS"] = "gym_settings";
|
|
1090
|
+
OnboardingStep2["FEATURES_CONFIGURED"] = "features_configured";
|
|
1091
|
+
OnboardingStep2["COMPLETED"] = "completed";
|
|
1092
|
+
return OnboardingStep2;
|
|
1093
|
+
})(OnboardingStep || {});
|
|
1094
|
+
|
|
1077
1095
|
// src/resources/onboarding.ts
|
|
1078
1096
|
var OnboardingResource = class extends BaseResource {
|
|
1079
1097
|
/**
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
1098
|
+
* Start onboarding process (async)
|
|
1099
|
+
* Creates user account and triggers background setup
|
|
1100
|
+
* Returns immediately with PROCESSING status
|
|
1101
|
+
* Use getStatusByEmail() to poll for completion
|
|
1082
1102
|
*/
|
|
1083
1103
|
async start(data) {
|
|
1084
|
-
const response = await this.client.post(
|
|
1104
|
+
const response = await this.client.post(
|
|
1105
|
+
"/onboarding/start",
|
|
1106
|
+
data,
|
|
1107
|
+
{ skipAuth: true }
|
|
1108
|
+
// Public endpoint - no auth required
|
|
1109
|
+
);
|
|
1085
1110
|
if (response.access_token) {
|
|
1086
1111
|
this.client.setAuthToken(response.access_token);
|
|
1087
1112
|
}
|
|
1088
1113
|
return response;
|
|
1089
1114
|
}
|
|
1115
|
+
/**
|
|
1116
|
+
* Get onboarding status by email (polling endpoint)
|
|
1117
|
+
* Use this to check if async onboarding setup is complete
|
|
1118
|
+
*
|
|
1119
|
+
* @param email - User email to check status
|
|
1120
|
+
* @returns Status object with PROCESSING, COMPLETED, or FAILED
|
|
1121
|
+
*/
|
|
1122
|
+
async getStatusByEmail(email) {
|
|
1123
|
+
return this.client.get(
|
|
1124
|
+
"/onboarding/status",
|
|
1125
|
+
{ email },
|
|
1126
|
+
{ skipAuth: true }
|
|
1127
|
+
);
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Poll for onboarding completion
|
|
1131
|
+
* Automatically polls until status is COMPLETED or FAILED
|
|
1132
|
+
*
|
|
1133
|
+
* @param email - User email
|
|
1134
|
+
* @param options - Polling options
|
|
1135
|
+
* @returns Final status when completed or failed
|
|
1136
|
+
*/
|
|
1137
|
+
async waitForCompletion(email, options = {}) {
|
|
1138
|
+
const { maxAttempts = 60, intervalMs = 1e3, onProgress } = options;
|
|
1139
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
1140
|
+
const status = await this.getStatusByEmail(email);
|
|
1141
|
+
if (onProgress) {
|
|
1142
|
+
onProgress(attempt, status.status);
|
|
1143
|
+
}
|
|
1144
|
+
if (status.status === "COMPLETED" /* COMPLETED */) {
|
|
1145
|
+
return status;
|
|
1146
|
+
}
|
|
1147
|
+
if (status.status === "FAILED" /* FAILED */) {
|
|
1148
|
+
throw new Error(`Onboarding failed: ${status.error || "Unknown error"}`);
|
|
1149
|
+
}
|
|
1150
|
+
await new Promise((resolve) => setTimeout(resolve, intervalMs));
|
|
1151
|
+
}
|
|
1152
|
+
throw new Error("Onboarding timeout - process is still running in background");
|
|
1153
|
+
}
|
|
1090
1154
|
/**
|
|
1091
1155
|
* Updates basic gym settings (step 2 of onboarding)
|
|
1092
1156
|
* Configure basic gym information like name, address, etc.
|
|
@@ -1108,7 +1172,7 @@ var OnboardingResource = class extends BaseResource {
|
|
|
1108
1172
|
return this.client.post("/onboarding/complete", data);
|
|
1109
1173
|
}
|
|
1110
1174
|
/**
|
|
1111
|
-
* Get current onboarding status
|
|
1175
|
+
* Get current onboarding status by gym ID
|
|
1112
1176
|
* Check progress and next steps
|
|
1113
1177
|
*/
|
|
1114
1178
|
async getStatus(gymId) {
|
|
@@ -2786,15 +2850,6 @@ var bulkMessageSchema = zod.z.object({
|
|
|
2786
2850
|
suggestions: zod.z.array(zod.z.string()).optional().describe("Additional message suggestions")
|
|
2787
2851
|
});
|
|
2788
2852
|
|
|
2789
|
-
// src/models/onboarding.ts
|
|
2790
|
-
var OnboardingStep = /* @__PURE__ */ ((OnboardingStep2) => {
|
|
2791
|
-
OnboardingStep2["ACCOUNT_CREATED"] = "account_created";
|
|
2792
|
-
OnboardingStep2["GYM_SETTINGS"] = "gym_settings";
|
|
2793
|
-
OnboardingStep2["FEATURES_CONFIGURED"] = "features_configured";
|
|
2794
|
-
OnboardingStep2["COMPLETED"] = "completed";
|
|
2795
|
-
return OnboardingStep2;
|
|
2796
|
-
})(OnboardingStep || {});
|
|
2797
|
-
|
|
2798
2853
|
// src/models/commissions.ts
|
|
2799
2854
|
var CommissionRuleType = /* @__PURE__ */ ((CommissionRuleType2) => {
|
|
2800
2855
|
CommissionRuleType2["PLAN"] = "PLAN";
|
|
@@ -2878,6 +2933,7 @@ exports.LeadGender = LeadGender;
|
|
|
2878
2933
|
exports.MembershipPlansResource = MembershipPlansResource;
|
|
2879
2934
|
exports.NetworkError = NetworkError;
|
|
2880
2935
|
exports.NotFoundError = NotFoundError;
|
|
2936
|
+
exports.OnboardingCacheStatus = OnboardingCacheStatus;
|
|
2881
2937
|
exports.OnboardingResource = OnboardingResource;
|
|
2882
2938
|
exports.OnboardingStep = OnboardingStep;
|
|
2883
2939
|
exports.OrganizationsResource = OrganizationsResource;
|