@gymspace/sdk 1.7.5 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -0
- package/dist/index.d.mts +350 -13
- package/dist/index.d.ts +350 -13
- package/dist/index.js +289 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +285 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
- package/src/client.ts +5 -6
- package/src/errors.ts +3 -5
- package/src/models/activities.ts +12 -3
- package/src/models/bulk-messaging.ts +26 -7
- package/src/models/contracts.ts +18 -0
- package/src/models/credits.ts +79 -0
- package/src/models/index.ts +3 -0
- package/src/models/membership-plans.ts +4 -0
- package/src/models/pricing-packages.ts +65 -0
- package/src/models/promo-codes.ts +97 -0
- package/src/resources/credits.ts +203 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/pricing-packages.ts +72 -0
- package/src/resources/promo-codes.ts +76 -0
- package/src/sdk.ts +9 -0
|
@@ -0,0 +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","../src/errors.ts","../node_modules/@gymspace/shared/src/types/whatsapp-templates.types.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/enums.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/@gymspace/shared/src/types.ts","../node_modules/@gymspace/shared/src/interfaces.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/activity-notification.schema.ts","../node_modules/@gymspace/shared/src/schemas/index.ts","../node_modules/@gymspace/shared/src/utils/rolehelpers.ts","../node_modules/@gymspace/shared/src/utils/phone.utils.ts","../node_modules/@gymspace/shared/src/index.ts","../src/types.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/models/messages.ts","../src/resources/messages.ts","../src/models/credits.ts","../src/resources/credits.ts","../src/models/pricing-packages.ts","../src/resources/pricing-packages.ts","../src/models/promo-codes.ts","../src/resources/promo-codes.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],[50,51],[49],[51],[54,55,56],[49,51,52,53,55,57,58,59,77,78,79],[53,58],[73],[74,75,76],[49,53],[47,48,81],[48,81,82,152,153,156],[126],[84],[80],[80,81],[84,85,88,90,93,95,97,99,101,103,106,108,110,114,116,118,120,122,127,129,132,134,136,138,144,146,148,150,154,155],[81],[125],[81,86,134],[81,86,110],[81,86],[86,106],[81,84,85,86],[81,82],[81,86,132],[81,86,103],[81,86,95],[80,81,86],[81,86,138],[81,86,99],[81,86,146],[86,101],[86,108],[81,86,90],[87,89,91,92,94,96,98,100,102,104,105,107,109,111,112,113,115,117,119,121,123,124,125,126,128,130,131,133,135,137,139,140,141,142,143,145,147,149,151],[81,86,97],[81,86,144],[86,114],[81,86,88],[81,86,127],[81,86,148],[81,86,116],[81,86,150],[80,81,86,93],[81,86,118],[81,84,86],[81,86,120],[81,86,136],[81,86,122],[81,86,129],[81,82,83,152],[82]],"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":"1c9800fbae1b443d77672e6d3e715df7280479b7c41f08cb790e750f01b50d90","impliedFormat":99},"c8553a38e0f2483b36ba7d173bad4e0a234c73fea4d69f60d2aad1007abfa50f",{"version":"c0f5d6c7f66a6ebbe1bf8b33c99c280b4cdb271bbf940b43ec53070a6f255869","impliedFormat":1},{"version":"4816adcc854c603ae8e2ce112ef431ce4e3503fee7e8b7d5925ef069b43aa58d","impliedFormat":1},{"version":"f003fdb115a4c6f524eb32438de5da4d5220c855ffdafde09c59468aeada5780","impliedFormat":1},{"version":"ddfdf3c73236af8daf77ba309b510eec059d54b6f3e218b753cfd62771758e3a","impliedFormat":1},{"version":"2b0a8d68fa918e859e4147d046101c970144d8244196da87464ec190a2b6c2dd","impliedFormat":1},{"version":"ee08afb09c42979e2a1f9aa8f009343500f946b8e3ac0207d46e79390f331c45","impliedFormat":1},{"version":"751aa823da481598637f08806a9d4a41b602c1a0fbb3567e15d1d6a10444595d","impliedFormat":1},{"version":"dcd768b31a77e38cc7dc147cbd1d80183ab3db2fca03939ec89d9ae8b13581f4","impliedFormat":1},{"version":"27bc4e2e091355feffae8d0f6b09251c9e1340fcd9e5f4a64adaad9e0d80bec8","impliedFormat":1},{"version":"c4869a3975351f27b47cd655991aa0081e3658315aa24777707685ee5fae02d3","impliedFormat":1},{"version":"5d43729825004f65a169ceb8cb72c4a2902571ab455c380b733f79a29764a6d2","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":"c149009ab43269d9008846f8067d0c39ce765dcbe1ad13d6c2b5d13e8fdcdc90","impliedFormat":1},{"version":"03495e88baade461c24c2363c1e7f7e777a7ae13b749186c0726207d05bf3c0d","impliedFormat":1},{"version":"c934cb299bc6f46910e61a6655ed654f00036817c3474499cb6c4ebc72c2fddc","impliedFormat":1},{"version":"85811096c3c92262d2c378eed49a4d4174dadd284a4c808e4ba7d0c89f09e9b0","impliedFormat":1},{"version":"5469b10edd5f3103e8cae01dc3a62682d4094a7bc334fb193ab52235842c5296","impliedFormat":1},"522237c3836c6a7c5e7afd0b1971a78ae2083d2ecdbb4c99c5b36ce3bb73505b","bee73f915b6f1756fc8b77cb7e7e45bdeffa3aa70f2effbb55a47e3c4713186c","358f0833c081a5ba5dd957d18530f507688c922f08054c12a78e0d42534a3bbc","ea6eb004e021c23a2d4c2090a3086234217e2d33361e62e9737ec34e3ef719e8","149cf742da9555355188424cd94735ae7bfce96f65093bad92a680208b079e6e","5fc81afdf7085284bdd04bb7b3de97769515daa5d8b2a4cecb1d4c2300b4a510","1463f5f090da2cf0243ae842d7569c3ffa8c9fe1e6c036e05442b950702306f6","208b5844b05691a047c1a4bccb514a247428c1083cf5964733f0562337e3ed80","e09640323c7636a9c8536247f83740a4af504cfba28aaeec1f554276fdbdf79b","5b6f03eb11b2db1fe4b79d097fa2e12812ffbdab81780c61015c450ec822c4ae","6196891c6e0bb73b74ac16dca7d75801afa18d9455105b3416ab14af101fa017","62eb992c4944eb724c9bc4a531f8c954a7aa94301b52f172cc69b335b738588c","2b949dc19987d2217953b362864780adabb1318bf2c6be5a76ca6a59220c7bf3","58e5f7be56dc310c730db38ab7df7bc1e17742bd54e55356f70def71cf45a847","c478bbdc874295b06acf9e4bf60b2a435157d1eb6f262109459c3ee7292867f3","61ec2be27c14fb6dd017426ccad9573d4195dece4182782fd36e9e584b9ba599","5d82c3d5fcade0c7833747f17639bc85e1c3590b6353127fb0d88a06ddd5febf","3caa6231ff6fb326b46c622f7160201b613704084ec83cb1b2733e50bfcf9048","06ca11584737df2b6c92198c60b4aa7eb5085fd0ae71e12e3ae1ede5fe815bf2","e7a9219ee898f35f559c031adc14f12a23232d1615196b64679665bc31aaeb09","a2659947000309025232a493a24559d02d894cdfa8c3781b03b89d7b6024503c","3d1029733b77f2d20a88c2a7c9fa2eef4117e02183a64adbb9e396fde58082a2","e2ec568b04b0f45098e9f41f9a4c4b79845086e1e97140c82d812eade0149535","0ec42fefa04cdc68782cefe6753d79a951bfaf0e3562d681b152b6a138abc607","7f9fd8afe650edbc896074b75fbab98b61d8f0e65dc0eca7f8fc867b1083703c","8d5e02343427bb0f8cd07e25f13fea96f16fda4d20c4bd0bb4eb5cb950fdfb85","8ca018e6dd4960711bcfc9a62bd4dba80794d7d436a61631339054042fdcd7a1","0318a89ce8ab11333f2110b24f21182b5cbe337d633e86c2f2c8be2371d876fd","5f627cd620351e3e4ed705f0abd6d84d289dd8141a781060954f074f93036634","c9a54df35f2b22840ea092492436f322ac9d74a0071a06555d55f65fd9110162","d3caa284f02d917e299c2cab4f537f6524c1db83e8c49ad61e222b185f338f8f","3e0f95e42eac290d1e264b67de09fa4f7b97715936d58b5f1a574b78bd1138cc","33253a790da4c3c4ca6fac42efe83f1f78f55d2a5d66a84a98ef2c24b92b12f8","5f9aba8441b8062079051597e04350eefb274a7dd93680f7a4a1ebd7f0248d59","426227bd53276130b79d2349ab70472df1bd5da5f108a1bdaa237d1a90c6af4d","f24fd0fade0ab2694b1038b1484505f61715660a5392dc8e414b5294f21dafde","f1ae7e612f0c9eeb7048ac5f1aff7f41530ac9e16c09f07222ce0ffc53a701d7","98b2be0257b290cd82d28207558424ccca1cbebd2f67b9d68205a2d9e3311785","3dd30d8cd53a684ecc336a21c411bcfd6c6766263f45fb38bf8a561dca33b9e3","0829af84d3368bd182c2c56a3277720a159e3296666a4a4b17e6ee945e3395d3","63aa5ef7c1fad8d6758f25e968e57a4973582866fa08a3429761597653eb39f2","5a323df23f74a335e727b2273b69b49a93c877c930a91d59c219dd69a8361ace","05b2c94345341a306f1635d9cc7f42e2af5df9d9a5f9d8399e1560e774566e50","6ac3496933bea2ed5aa344ce23d763219b5118f3b35df3b5f671513a4323df67","49ac3ac2280c77813ab79de1943f256014ce0a4d977d5c7b9da645b5a9126c7e","21259e4ae26bc1386e6969a3072d6ec31dc52ad81a07b151d66d9cb9ab81cb37","51bebf61fbc48fc20666609c19f96a2ea65bcffc4971d2c0c8d5f87e94dfa59b","aa3739ab80ddd103e094a807e4a94bd9c15afc4a05f23ac79f81770b968ac5a7","2faa34a7608af115c11431fc15842c10bbf8eb7b7be6f593f17d56c3622f4bf0","407658a55dd33cb86ab116fddf7e0ec138be2372d8053bd2bdd59f1d6768abc6","038353dc059db1b2aee89acea285136ae3e6980b7a00dfa055749a8c9c69446d","4ed6a5342d4b3c2ee3362fd92bf0d6accb987c61fc80390ea5a97aa7662a34a5","7de4f8be457ffdffe588d67d670f6045f3fa1f7b58943afcaec4a089ff6fc698","92ffda4b78c4ea27a9da946ad796803b7d1bbea5c50a515936212e3110d805bb","2df2a1cab9b187e3b04023e6f4efac8f9fd8ce350374b4b64c6cd6f9cd30a415","92993add08cef6c9b4022dc996971fa7a19f9db3cff8505801ab4b84b3763b5b","78be2b57be63cdcf2ee702b1b83b47bbad2e10e775d894be94cb762fe69e5555","5373e92103b4bac997c1c5a56fb20c33db307d23d7222a87e1c1d412aa778c89","a9507fd60c9bc85b529ad7fc61d0bb21d4b16dd91c0a522e08a00e5bd56471dc","f44eb61ba2b51021075d1895f65a610ebd4882c9ca13bfc5861c2a89750a5d7d","a8f115257802c52b66411b0f4fda408e46c12428e9d16fab24122b4ff42f6fa6","fb3f1cc0a373e662def2b5f0df965532c96842b3cdd3c3ddee5e889bbdaf5d4f","641868ca28d751af1921ce8f01cf8920786c7871e62d7af32b8b578708ebbd2d","a5844cfb811a2e5f74d23db5867f903b0fa3318893cdf7bec4935cdd77dc54dd","6d6041cdb33b5617d7051e91f19b6fce9a36790eab6a6bc8ebb70c34c8f871dd","05050b231258867f8aebd593c0d67398f7aec0f6485961b4303565d044bc5458","250f956bc1f2063274e1bd48bb96f9e8836a01b11079b53e58f9b3e64ca45dc0","6845602c11ba4aac544d64c44b98d9a997091f940651cfd4a13b895b63891e96","98c841548ee72f9822523738859fe26bb2b80f05b64be60f0fb06ab5b9b920ce","528fce4cf2b3cae42a1f05aefabb48e5036931478cb6f1413b92af50adbe6c33","103a8997c48f97ec021179711eff898df1c6d9c0123eeb66ff1fdd235169c7e9","7a742cb168c43514dff44c3f5abf2b378380e644bfa662d075e9c326b24aa632","41f179313ef9d36824c2d92efdae899d0b560f26ab3759088f9fdb47627eae2d","630a65d71ba7571e9880f174146ef544d2818cbcf85440869823a3c69bb13438","0f397304d0d60d06be9e49ff7d18dbfc4a3fa5b3f5d72e08d77c1bf1601bf4f6","03c011437c273915b8ccc1994a50398e797e53e7ce4209c0f0e1752f55a7c609","6581f800df7e785c8aab229f06bef765ad781f0bb353091a0f23375694c7891e","2889a5f3b6a7d9cd1dd50870cfd7d33b44fd5fb2b65a007e7324e4fcbf731981","2889a5f3b6a7d9cd1dd50870cfd7d33b44fd5fb2b65a007e7324e4fcbf731981"],"root":[48,[81,159]],"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],[52,9],[50,10],[55,11],[57,12],[80,13],[59,14],[76,15],[74,15],[75,15],[77,16],[58,17],[82,18],[157,19],[155,20],[85,21],[132,22],[99,23],[156,24],[118,25],[154,26],[120,25],[129,25],[135,27],[112,28],[126,29],[107,30],[87,31],[86,32],[133,33],[104,34],[96,35],[92,36],[141,37],[139,37],[143,37],[142,37],[140,37],[100,38],[147,39],[102,40],[109,41],[91,42],[113,29],[152,43],[105,36],[98,44],[145,45],[115,46],[89,47],[128,48],[149,49],[117,50],[151,51],[111,28],[94,52],[119,53],[125,29],[124,54],[121,55],[137,56],[123,57],[131,58],[130,58],[153,59],[81,22],[83,60]],"affectedFilesPendingEmit":[[82,49],[48,49],[157,49],[134,49],[155,49],[106,49],[85,49],[132,49],[110,49],[103,49],[95,49],[158,49],[138,49],[99,49],[146,49],[101,49],[108,49],[90,49],[156,49],[159,49],[97,49],[144,49],[114,49],[88,49],[127,49],[148,49],[116,49],[150,49],[93,49],[118,49],[154,49],[84,49],[120,49],[136,49],[122,49],[129,49],[135,49],[112,49],[126,49],[107,49],[87,49],[86,49],[133,49],[104,49],[96,49],[92,49],[141,49],[139,49],[143,49],[142,49],[140,49],[100,49],[147,49],[102,49],[109,49],[91,49],[113,49],[152,49],[105,49],[98,49],[145,49],[115,49],[89,49],[128,49],[149,49],[117,49],[151,49],[111,49],[94,49],[119,49],[125,49],[124,49],[121,49],[137,49],[123,49],[131,49],[130,49],[153,49],[81,49],[83,49]],"emitSignatures":[48,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,150,151,152,153,154,155,156,157,158,159],"version":"5.9.3"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { PaginationParams as PaginationParams$1, ListCollaboratorsParams, Collaborator, UpdateCollaboratorDto, UpdateCollaboratorRoleDto, UpdateCollaboratorStatusDto, ActivityQueryParams, ActivityItem, StatsQueryParams, CollaboratorStats, Role, ContractStatus, CancellationReason, SuspensionType, CreateInvitationDto, Invitation, ValidateByCodeDto, ValidateByTokenDto, AcceptInvitationDto, BulkMessageVariable } from '@gymspace/shared';
|
|
2
|
+
import { PaginationParams as PaginationParams$1, ListCollaboratorsParams, Collaborator, UpdateCollaboratorDto, UpdateCollaboratorRoleDto, UpdateCollaboratorStatusDto, ActivityQueryParams, ActivityItem, StatsQueryParams, CollaboratorStats, Role, ContractStatus, CancellationReason, SuspensionType, CreateInvitationDto, Invitation, ValidateByCodeDto, ValidateByTokenDto, AcceptInvitationDto, BulkMessage, BulkMessageVariable } from '@gymspace/shared';
|
|
3
3
|
export * from '@gymspace/shared';
|
|
4
|
-
export { BulkMessageVariable } from '@gymspace/shared';
|
|
4
|
+
export { BulkMessage, BulkMessageVariable } from '@gymspace/shared';
|
|
5
5
|
|
|
6
6
|
interface GymSpaceConfig {
|
|
7
7
|
baseURL: string;
|
|
@@ -922,6 +922,9 @@ interface MembershipPlan {
|
|
|
922
922
|
assetsIds?: string[];
|
|
923
923
|
createdAt: string;
|
|
924
924
|
updatedAt: string;
|
|
925
|
+
_count?: {
|
|
926
|
+
pricingPackages: number;
|
|
927
|
+
};
|
|
925
928
|
}
|
|
926
929
|
interface MembershipPlanStats {
|
|
927
930
|
plan: {
|
|
@@ -989,6 +992,7 @@ interface MembershipPlanStats {
|
|
|
989
992
|
}
|
|
990
993
|
interface GetMembershipPlansParams {
|
|
991
994
|
activeOnly?: boolean;
|
|
995
|
+
includeCounts?: boolean;
|
|
992
996
|
}
|
|
993
997
|
|
|
994
998
|
declare class MembershipPlansResource extends BaseResource {
|
|
@@ -1004,6 +1008,8 @@ declare class MembershipPlansResource extends BaseResource {
|
|
|
1004
1008
|
interface CreateContractDto {
|
|
1005
1009
|
gymClientId: string;
|
|
1006
1010
|
gymMembershipPlanId: string;
|
|
1011
|
+
pricingPackageId?: string;
|
|
1012
|
+
promoCode?: string;
|
|
1007
1013
|
paymentMethodId: string;
|
|
1008
1014
|
startDate: string;
|
|
1009
1015
|
discountPercentage?: number;
|
|
@@ -1015,6 +1021,8 @@ interface RenewContractDto {
|
|
|
1015
1021
|
startDate?: string;
|
|
1016
1022
|
discountPercentage?: number;
|
|
1017
1023
|
customPrice?: number;
|
|
1024
|
+
pricingPackageId?: string;
|
|
1025
|
+
promoCode?: string;
|
|
1018
1026
|
paymentMethodId?: string;
|
|
1019
1027
|
applyAtEndOfContract?: boolean;
|
|
1020
1028
|
notes?: string;
|
|
@@ -1058,6 +1066,7 @@ interface Contract {
|
|
|
1058
1066
|
contractNumber: string;
|
|
1059
1067
|
gymClientId: string;
|
|
1060
1068
|
gymMembershipPlanId: string;
|
|
1069
|
+
pricingPackageId?: string | null;
|
|
1061
1070
|
paymentMethodId?: string;
|
|
1062
1071
|
parentId?: string;
|
|
1063
1072
|
startDate: string;
|
|
@@ -1069,6 +1078,9 @@ interface Contract {
|
|
|
1069
1078
|
currency: string;
|
|
1070
1079
|
discountPercentage?: number | null;
|
|
1071
1080
|
discountAmount?: string | null;
|
|
1081
|
+
promoCode?: string | null;
|
|
1082
|
+
promoCodeSnapshot?: Record<string, any> | null;
|
|
1083
|
+
promoDiscount?: string | null;
|
|
1072
1084
|
paymentFrequency: string;
|
|
1073
1085
|
notes?: string | null;
|
|
1074
1086
|
termsAndConditions?: string | null;
|
|
@@ -1113,6 +1125,16 @@ interface Contract {
|
|
|
1113
1125
|
assetsIds?: string[];
|
|
1114
1126
|
status?: string;
|
|
1115
1127
|
};
|
|
1128
|
+
pricingPackage?: {
|
|
1129
|
+
id: string;
|
|
1130
|
+
planId: string;
|
|
1131
|
+
name: string;
|
|
1132
|
+
price: number;
|
|
1133
|
+
durationMonths?: number | null;
|
|
1134
|
+
durationDays?: number | null;
|
|
1135
|
+
isDefault: boolean;
|
|
1136
|
+
isActive: boolean;
|
|
1137
|
+
};
|
|
1116
1138
|
paymentMethod?: {
|
|
1117
1139
|
id: string;
|
|
1118
1140
|
organizationId: string;
|
|
@@ -2992,7 +3014,7 @@ interface BulkTemplate {
|
|
|
2992
3014
|
id: string;
|
|
2993
3015
|
gymId: string;
|
|
2994
3016
|
name: string;
|
|
2995
|
-
|
|
3017
|
+
messages: BulkMessage[];
|
|
2996
3018
|
description?: string;
|
|
2997
3019
|
tags: string[];
|
|
2998
3020
|
isActive: boolean;
|
|
@@ -3005,14 +3027,14 @@ interface BulkTemplate {
|
|
|
3005
3027
|
}
|
|
3006
3028
|
interface CreateBulkTemplateDto {
|
|
3007
3029
|
name: string;
|
|
3008
|
-
|
|
3030
|
+
messages: BulkMessage[];
|
|
3009
3031
|
description?: string;
|
|
3010
3032
|
tags?: string[];
|
|
3011
3033
|
isActive?: boolean;
|
|
3012
3034
|
}
|
|
3013
3035
|
interface UpdateBulkTemplateDto {
|
|
3014
3036
|
name?: string;
|
|
3015
|
-
|
|
3037
|
+
messages?: BulkMessage[];
|
|
3016
3038
|
description?: string;
|
|
3017
3039
|
tags?: string[];
|
|
3018
3040
|
isActive?: boolean;
|
|
@@ -3020,8 +3042,10 @@ interface UpdateBulkTemplateDto {
|
|
|
3020
3042
|
|
|
3021
3043
|
interface SendBulkMessagesDto {
|
|
3022
3044
|
templateId?: string;
|
|
3023
|
-
|
|
3045
|
+
messages?: BulkMessage[];
|
|
3024
3046
|
clientIds: string[];
|
|
3047
|
+
variableContext?: string;
|
|
3048
|
+
scheduledAt?: string;
|
|
3025
3049
|
}
|
|
3026
3050
|
interface RejectedClientDto {
|
|
3027
3051
|
clientId: string;
|
|
@@ -3042,14 +3066,27 @@ interface BulkMessageLogDto {
|
|
|
3042
3066
|
clientId: string;
|
|
3043
3067
|
clientName: string;
|
|
3044
3068
|
phoneNumber: string;
|
|
3045
|
-
message
|
|
3046
|
-
|
|
3069
|
+
message?: string;
|
|
3070
|
+
messages?: Array<{
|
|
3071
|
+
type: 'text' | 'image';
|
|
3072
|
+
order: number;
|
|
3073
|
+
status: 'pending' | 'sent' | 'failed';
|
|
3074
|
+
preview: string;
|
|
3075
|
+
caption?: string;
|
|
3076
|
+
externalMessageId?: string;
|
|
3077
|
+
error?: string;
|
|
3078
|
+
sentAt?: string;
|
|
3079
|
+
}>;
|
|
3080
|
+
status?: 'pending' | 'queued' | 'sent' | 'delivered' | 'failed';
|
|
3081
|
+
overallStatus?: 'pending' | 'sending' | 'sent' | 'partial' | 'failed';
|
|
3047
3082
|
sentAt?: string;
|
|
3048
3083
|
deliveredAt?: string;
|
|
3049
3084
|
failedAt?: string;
|
|
3050
3085
|
failureReason?: string;
|
|
3051
3086
|
retryCount: number;
|
|
3052
|
-
timestamp
|
|
3087
|
+
timestamp?: string;
|
|
3088
|
+
createdAt?: string;
|
|
3089
|
+
updatedAt?: string;
|
|
3053
3090
|
}
|
|
3054
3091
|
interface GetBulkLogsQueryDto {
|
|
3055
3092
|
sendId: string;
|
|
@@ -3061,6 +3098,7 @@ interface BulkLogsResponseDto {
|
|
|
3061
3098
|
delivered: number;
|
|
3062
3099
|
failed: number;
|
|
3063
3100
|
pending: number;
|
|
3101
|
+
partial?: number;
|
|
3064
3102
|
logs: BulkMessageLogDto[];
|
|
3065
3103
|
isComplete: boolean;
|
|
3066
3104
|
}
|
|
@@ -3167,13 +3205,20 @@ interface SearchActivitiesParams {
|
|
|
3167
3205
|
planId?: string;
|
|
3168
3206
|
isActive?: boolean;
|
|
3169
3207
|
}
|
|
3208
|
+
interface BulkMessageDto {
|
|
3209
|
+
type: 'text' | 'image';
|
|
3210
|
+
content: string;
|
|
3211
|
+
mediaRef?: 'file' | 'asset';
|
|
3212
|
+
caption?: string;
|
|
3213
|
+
order: number;
|
|
3214
|
+
}
|
|
3170
3215
|
interface CreateActivityNotificationDto {
|
|
3171
|
-
|
|
3216
|
+
messages: BulkMessageDto[];
|
|
3172
3217
|
advanceTimeMinutes: number;
|
|
3173
3218
|
isActive?: boolean;
|
|
3174
3219
|
}
|
|
3175
3220
|
interface UpdateActivityNotificationDto {
|
|
3176
|
-
|
|
3221
|
+
messages?: BulkMessageDto[];
|
|
3177
3222
|
advanceTimeMinutes?: number;
|
|
3178
3223
|
isActive?: boolean;
|
|
3179
3224
|
}
|
|
@@ -3183,7 +3228,8 @@ interface ActivityNotificationDto {
|
|
|
3183
3228
|
templateId: string;
|
|
3184
3229
|
advanceTimeMinutes: number;
|
|
3185
3230
|
isActive: boolean;
|
|
3186
|
-
|
|
3231
|
+
messages: BulkMessageDto[];
|
|
3232
|
+
template?: {
|
|
3187
3233
|
id: string;
|
|
3188
3234
|
name: string;
|
|
3189
3235
|
message: string;
|
|
@@ -3911,6 +3957,294 @@ declare class MessagesResource extends BaseResource {
|
|
|
3911
3957
|
cancelMessage(id: string, options?: RequestOptions): Promise<Message>;
|
|
3912
3958
|
}
|
|
3913
3959
|
|
|
3960
|
+
declare enum FeatureType {
|
|
3961
|
+
AI_GENERATION = "ai_generation",
|
|
3962
|
+
BULK_WHATSAPP = "bulk_whatsapp"
|
|
3963
|
+
}
|
|
3964
|
+
interface CreditAccount {
|
|
3965
|
+
id: string;
|
|
3966
|
+
organizationId: string;
|
|
3967
|
+
balance: number;
|
|
3968
|
+
monthlyAllowance: number;
|
|
3969
|
+
lastResetAt: string;
|
|
3970
|
+
createdAt: string;
|
|
3971
|
+
updatedAt: string;
|
|
3972
|
+
}
|
|
3973
|
+
interface CreditAccountWithOrgName {
|
|
3974
|
+
id: string;
|
|
3975
|
+
organizationId: string;
|
|
3976
|
+
organizationName: string;
|
|
3977
|
+
balance: number;
|
|
3978
|
+
monthlyAllowance: number;
|
|
3979
|
+
lastResetAt: string;
|
|
3980
|
+
createdAt: string;
|
|
3981
|
+
}
|
|
3982
|
+
interface CreditTransaction {
|
|
3983
|
+
id: string;
|
|
3984
|
+
accountId: string;
|
|
3985
|
+
featureType: FeatureType;
|
|
3986
|
+
quantity: number;
|
|
3987
|
+
description?: string;
|
|
3988
|
+
metadata?: Record<string, any>;
|
|
3989
|
+
createdAt: string;
|
|
3990
|
+
}
|
|
3991
|
+
interface CreditAdjustment {
|
|
3992
|
+
adjustment: number;
|
|
3993
|
+
reason: string;
|
|
3994
|
+
notes?: string;
|
|
3995
|
+
}
|
|
3996
|
+
interface CreditAdjustmentResponse {
|
|
3997
|
+
previousBalance: number;
|
|
3998
|
+
newBalance: number;
|
|
3999
|
+
adjusted: number;
|
|
4000
|
+
transactionId: string;
|
|
4001
|
+
}
|
|
4002
|
+
interface CreditUsageReport {
|
|
4003
|
+
balance: number;
|
|
4004
|
+
monthlyAllowance: number;
|
|
4005
|
+
usedThisMonth: number;
|
|
4006
|
+
remaining: number;
|
|
4007
|
+
lastReset: string;
|
|
4008
|
+
usagePercentage: number;
|
|
4009
|
+
transactionCount: number;
|
|
4010
|
+
}
|
|
4011
|
+
interface CreditUsageReportQuery {
|
|
4012
|
+
startDate?: string;
|
|
4013
|
+
endDate?: string;
|
|
4014
|
+
}
|
|
4015
|
+
interface CreditStats {
|
|
4016
|
+
balance: number;
|
|
4017
|
+
monthlyAllowance: number;
|
|
4018
|
+
usedThisMonth: number;
|
|
4019
|
+
lastReset: string;
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
declare class CreditsResource extends BaseResource {
|
|
4023
|
+
private adminOrgCreditsPath;
|
|
4024
|
+
private orgCreditsPath;
|
|
4025
|
+
private adminCreditsPath;
|
|
4026
|
+
/**
|
|
4027
|
+
* Get credit account for own organization (non-admin)
|
|
4028
|
+
*/
|
|
4029
|
+
getCreditAccount(organizationId: string, options?: RequestOptions): Promise<CreditAccount>;
|
|
4030
|
+
/**
|
|
4031
|
+
* Get credit account for a specific organization (admin only)
|
|
4032
|
+
*/
|
|
4033
|
+
getAdminCreditAccount(organizationId: string, options?: RequestOptions): Promise<CreditAccount>;
|
|
4034
|
+
/**
|
|
4035
|
+
* Get credit transaction history for own organization (non-admin)
|
|
4036
|
+
*/
|
|
4037
|
+
getCreditTransactions(organizationId: string, limit?: number, options?: RequestOptions): Promise<CreditTransaction[]>;
|
|
4038
|
+
/**
|
|
4039
|
+
* Get credit transaction history for a specific organization (admin only)
|
|
4040
|
+
*/
|
|
4041
|
+
getAdminCreditTransactions(organizationId: string, limit?: number, options?: RequestOptions): Promise<CreditTransaction[]>;
|
|
4042
|
+
/**
|
|
4043
|
+
* Adjust credits for a specific organization (admin only)
|
|
4044
|
+
*/
|
|
4045
|
+
adjustCredits(organizationId: string, adjustment: CreditAdjustment, options?: RequestOptions): Promise<CreditAdjustmentResponse>;
|
|
4046
|
+
/**
|
|
4047
|
+
* Get credit usage report for own organization (non-admin)
|
|
4048
|
+
*/
|
|
4049
|
+
getUsageReport(organizationId: string, query?: CreditUsageReportQuery, options?: RequestOptions): Promise<CreditUsageReport>;
|
|
4050
|
+
/**
|
|
4051
|
+
* Get credit usage report for a specific organization (admin only)
|
|
4052
|
+
*/
|
|
4053
|
+
getAdminUsageReport(organizationId: string, query?: CreditUsageReportQuery, options?: RequestOptions): Promise<CreditUsageReport>;
|
|
4054
|
+
/**
|
|
4055
|
+
* Get all organizations with credit accounts (Super Admin only)
|
|
4056
|
+
*/
|
|
4057
|
+
getAllCreditAccounts(limit?: number, offset?: number, options?: RequestOptions): Promise<CreditAccountWithOrgName[]>;
|
|
4058
|
+
/**
|
|
4059
|
+
* Get credit stats for current organization (existing endpoint)
|
|
4060
|
+
*/
|
|
4061
|
+
getCreditStats(organizationId: string, options?: RequestOptions): Promise<CreditStats>;
|
|
4062
|
+
/**
|
|
4063
|
+
* Search credit transactions with filters
|
|
4064
|
+
*/
|
|
4065
|
+
searchTransactions(organizationId: string, filters: {
|
|
4066
|
+
featureType?: string;
|
|
4067
|
+
startDate?: string;
|
|
4068
|
+
endDate?: string;
|
|
4069
|
+
minAmount?: number;
|
|
4070
|
+
maxAmount?: number;
|
|
4071
|
+
}, limit?: number, options?: RequestOptions): Promise<CreditTransaction[]>;
|
|
4072
|
+
/**
|
|
4073
|
+
* Get credit summary for multiple organizations
|
|
4074
|
+
*/
|
|
4075
|
+
getOrganizationsCreditSummary(organizationIds: string[], options?: RequestOptions): Promise<Array<{
|
|
4076
|
+
organizationId: string;
|
|
4077
|
+
balance: number;
|
|
4078
|
+
monthlyAllowance: number;
|
|
4079
|
+
usedThisMonth: number;
|
|
4080
|
+
}>>;
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4083
|
+
interface CreatePricingPackageDto {
|
|
4084
|
+
name: string;
|
|
4085
|
+
description?: string;
|
|
4086
|
+
durationMonths?: number;
|
|
4087
|
+
durationDays?: number;
|
|
4088
|
+
price: number;
|
|
4089
|
+
currency?: string;
|
|
4090
|
+
displayOrder?: number;
|
|
4091
|
+
isActive?: boolean;
|
|
4092
|
+
isDefault?: boolean;
|
|
4093
|
+
metadata?: Record<string, any>;
|
|
4094
|
+
}
|
|
4095
|
+
interface UpdatePricingPackageDto {
|
|
4096
|
+
name?: string;
|
|
4097
|
+
description?: string;
|
|
4098
|
+
durationMonths?: number;
|
|
4099
|
+
durationDays?: number;
|
|
4100
|
+
price?: number;
|
|
4101
|
+
currency?: string;
|
|
4102
|
+
displayOrder?: number;
|
|
4103
|
+
isActive?: boolean;
|
|
4104
|
+
isDefault?: boolean;
|
|
4105
|
+
metadata?: Record<string, any>;
|
|
4106
|
+
}
|
|
4107
|
+
interface SearchPricingPackagesParams {
|
|
4108
|
+
membershipPlanId?: string;
|
|
4109
|
+
isActive?: boolean;
|
|
4110
|
+
isDefault?: boolean;
|
|
4111
|
+
page?: number;
|
|
4112
|
+
limit?: number;
|
|
4113
|
+
}
|
|
4114
|
+
interface PricingPackage {
|
|
4115
|
+
id: string;
|
|
4116
|
+
gymId: string;
|
|
4117
|
+
membershipPlanId: string;
|
|
4118
|
+
name: string;
|
|
4119
|
+
description?: string;
|
|
4120
|
+
durationMonths?: number;
|
|
4121
|
+
durationDays?: number;
|
|
4122
|
+
price: number;
|
|
4123
|
+
currency: string;
|
|
4124
|
+
displayOrder: number;
|
|
4125
|
+
isActive: boolean;
|
|
4126
|
+
isDefault: boolean;
|
|
4127
|
+
metadata?: Record<string, any>;
|
|
4128
|
+
createdAt: string;
|
|
4129
|
+
updatedAt: string;
|
|
4130
|
+
deletedAt?: string;
|
|
4131
|
+
membershipPlan?: {
|
|
4132
|
+
id: string;
|
|
4133
|
+
name: string;
|
|
4134
|
+
};
|
|
4135
|
+
_count?: {
|
|
4136
|
+
contracts: number;
|
|
4137
|
+
};
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
declare class PricingPackagesResource extends BaseResource {
|
|
4141
|
+
private basePath;
|
|
4142
|
+
createPricingPackage(planId: string, data: CreatePricingPackageDto, options?: RequestOptions): Promise<PricingPackage>;
|
|
4143
|
+
getPricingPackage(id: string, options?: RequestOptions): Promise<PricingPackage>;
|
|
4144
|
+
updatePricingPackage(id: string, data: UpdatePricingPackageDto, options?: RequestOptions): Promise<PricingPackage>;
|
|
4145
|
+
searchPricingPackages(params?: SearchPricingPackagesParams, options?: RequestOptions): Promise<PaginatedResponseDto<PricingPackage>>;
|
|
4146
|
+
getPricingPackagesByPlan(planId: string, options?: RequestOptions): Promise<PricingPackage[]>;
|
|
4147
|
+
deletePricingPackage(id: string, options?: RequestOptions): Promise<void>;
|
|
4148
|
+
}
|
|
4149
|
+
|
|
4150
|
+
declare enum DiscountType {
|
|
4151
|
+
PERCENTAGE = "PERCENTAGE",
|
|
4152
|
+
FIXED_AMOUNT = "FIXED_AMOUNT"
|
|
4153
|
+
}
|
|
4154
|
+
interface CreatePromoCodeDto {
|
|
4155
|
+
code: string;
|
|
4156
|
+
description?: string;
|
|
4157
|
+
discountType: DiscountType;
|
|
4158
|
+
discountValue: number;
|
|
4159
|
+
validFrom: string;
|
|
4160
|
+
validUntil: string;
|
|
4161
|
+
maxUses?: number;
|
|
4162
|
+
minPurchaseAmount?: number;
|
|
4163
|
+
applicableTo?: {
|
|
4164
|
+
planIds?: string[];
|
|
4165
|
+
packageIds?: string[];
|
|
4166
|
+
};
|
|
4167
|
+
}
|
|
4168
|
+
interface UpdatePromoCodeDto {
|
|
4169
|
+
description?: string;
|
|
4170
|
+
discountType?: DiscountType;
|
|
4171
|
+
discountValue?: number;
|
|
4172
|
+
validFrom?: string;
|
|
4173
|
+
validUntil?: string;
|
|
4174
|
+
maxUses?: number;
|
|
4175
|
+
minPurchaseAmount?: number;
|
|
4176
|
+
applicableTo?: {
|
|
4177
|
+
planIds?: string[];
|
|
4178
|
+
packageIds?: string[];
|
|
4179
|
+
};
|
|
4180
|
+
}
|
|
4181
|
+
interface SearchPromoCodesParams {
|
|
4182
|
+
isActive?: boolean;
|
|
4183
|
+
code?: string;
|
|
4184
|
+
status?: 'active' | 'expired' | 'exhausted';
|
|
4185
|
+
page?: number;
|
|
4186
|
+
limit?: number;
|
|
4187
|
+
}
|
|
4188
|
+
interface ValidatePromoCodeDto {
|
|
4189
|
+
code: string;
|
|
4190
|
+
pricingPackageId: string;
|
|
4191
|
+
packagePrice: number;
|
|
4192
|
+
}
|
|
4193
|
+
interface ValidatePromoCodeResponseDto {
|
|
4194
|
+
valid: boolean;
|
|
4195
|
+
id?: string;
|
|
4196
|
+
code?: string;
|
|
4197
|
+
discountType?: string;
|
|
4198
|
+
discountValue?: number;
|
|
4199
|
+
discountAmount?: number;
|
|
4200
|
+
finalAmount?: number;
|
|
4201
|
+
error?: string;
|
|
4202
|
+
}
|
|
4203
|
+
interface PromoCode {
|
|
4204
|
+
id: string;
|
|
4205
|
+
gymId: string;
|
|
4206
|
+
code: string;
|
|
4207
|
+
description?: string;
|
|
4208
|
+
discountType: DiscountType;
|
|
4209
|
+
discountValue: number;
|
|
4210
|
+
validFrom: string;
|
|
4211
|
+
validUntil: string;
|
|
4212
|
+
maxUses?: number;
|
|
4213
|
+
currentUses: number;
|
|
4214
|
+
minPurchaseAmount?: number;
|
|
4215
|
+
applicableTo?: {
|
|
4216
|
+
planIds?: string[];
|
|
4217
|
+
packageIds?: string[];
|
|
4218
|
+
};
|
|
4219
|
+
isActive: boolean;
|
|
4220
|
+
createdAt: string;
|
|
4221
|
+
updatedAt: string;
|
|
4222
|
+
deletedAt?: string;
|
|
4223
|
+
_count?: {
|
|
4224
|
+
contracts: number;
|
|
4225
|
+
};
|
|
4226
|
+
}
|
|
4227
|
+
interface PromoCodeAnalytics {
|
|
4228
|
+
totalUses: number;
|
|
4229
|
+
remainingUses?: number;
|
|
4230
|
+
totalDiscount: number;
|
|
4231
|
+
averageDiscount: number;
|
|
4232
|
+
contractCount: number;
|
|
4233
|
+
isActive: boolean;
|
|
4234
|
+
daysUntilExpiration?: number;
|
|
4235
|
+
}
|
|
4236
|
+
|
|
4237
|
+
declare class PromoCodesResource extends BaseResource {
|
|
4238
|
+
private basePath;
|
|
4239
|
+
createPromoCode(data: CreatePromoCodeDto, options?: RequestOptions): Promise<PromoCode>;
|
|
4240
|
+
validatePromoCode(data: ValidatePromoCodeDto, options?: RequestOptions): Promise<ValidatePromoCodeResponseDto>;
|
|
4241
|
+
searchPromoCodes(params?: SearchPromoCodesParams, options?: RequestOptions): Promise<PaginatedResponseDto<PromoCode>>;
|
|
4242
|
+
getPromoCodeAnalytics(id: string, options?: RequestOptions): Promise<PromoCodeAnalytics>;
|
|
4243
|
+
getPromoCode(id: string, options?: RequestOptions): Promise<PromoCode>;
|
|
4244
|
+
updatePromoCode(id: string, data: UpdatePromoCodeDto, options?: RequestOptions): Promise<PromoCode>;
|
|
4245
|
+
deletePromoCode(id: string, options?: RequestOptions): Promise<void>;
|
|
4246
|
+
}
|
|
4247
|
+
|
|
3914
4248
|
declare class GymSpaceSdk {
|
|
3915
4249
|
client: ApiClient;
|
|
3916
4250
|
private expoFetch?;
|
|
@@ -3950,6 +4284,9 @@ declare class GymSpaceSdk {
|
|
|
3950
4284
|
commissionReports: CommissionReportsResource;
|
|
3951
4285
|
commissionPromotions: CommissionPromotionsResource;
|
|
3952
4286
|
messages: MessagesResource;
|
|
4287
|
+
credits: CreditsResource;
|
|
4288
|
+
pricingPackages: PricingPackagesResource;
|
|
4289
|
+
promoCodes: PromoCodesResource;
|
|
3953
4290
|
constructor(config: GymSpaceConfig);
|
|
3954
4291
|
/**
|
|
3955
4292
|
* Set the authentication token
|
|
@@ -4019,4 +4356,4 @@ declare class NetworkError extends GymSpaceError {
|
|
|
4019
4356
|
constructor(message?: string);
|
|
4020
4357
|
}
|
|
4021
4358
|
|
|
4022
|
-
export { type ActivateRenewalDto, ActivitiesResource, type Activity, type ActivityNotificationDto, 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 GetMessagesParams, 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, type Message, type MessageStatusUpdate, MessagesResource, type MyOrganization, 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 SwitchOrganizationDto, type SwitchOrganizationResponse, 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 };
|
|
4359
|
+
export { type ActivateRenewalDto, ActivitiesResource, type Activity, type ActivityNotificationDto, 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 BulkMessageDto, 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 CreatePricingPackageDto, type CreateProductCategoryDto, type CreateProductDto, type CreatePromoCodeDto, type CreateSaleDto, type CreateServiceDto, type CreateSubscriptionPlanDto, type CreateSupplierDto, type CreateTagDto, type CreateTemplateDto, type CreateWhatsAppConfigDto, type CreditAccount, type CreditAccountWithOrgName, type CreditAdjustment, type CreditAdjustmentResponse, type CreditStats, type CreditTransaction, type CreditUsageReport, type CreditUsageReportQuery, CreditsResource, type CurrentSessionResponse, type CurrentlyInGymResponse, type CustomerSalesReport, DashboardResource, type DashboardStats, type DateRangeParams, type DaySchedule, type Debts, type DeleteActivityParams, type DeleteTagResponse, type DisconnectResponse, DiscountType, type EligibleClient, type EligibleClientsResponse, type ExpiringContract, FeatureType, 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 GetMessagesParams, 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, type Message, type MessageStatusUpdate, MessagesResource, type MyOrganization, 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 PricingPackage, PricingPackagesResource, type Product, type ProductCategory, ProductsResource, type PromoCode, type PromoCodeAnalytics, PromoCodesResource, 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 SearchPricingPackagesParams, type SearchProductsParams, type SearchPromoCodesParams, 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 SwitchOrganizationDto, type SwitchOrganizationResponse, 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 UpdatePricingPackageDto, type UpdateProductCategoryDto, type UpdateProductDto, type UpdateProfileDto, type UpdatePromoCodeDto, type UpdateSaleDto, type UpdateStockDto, type UpdateSubscriptionPlanDto, type UpdateSupplierDto, type UpdateTagDto, type UpdateTemplateDto, type UpdateWhatsAppConfigDto, type UpgradeSubscriptionDto, type UploadAssetDto, type UploadFileDto, type UserProfileDto, UsersResource, type ValidatePromoCodeDto, type ValidatePromoCodeResponseDto, ValidationError, type VerifyEmailDto, type VerifyResetCodeDto, type VerifyResetCodeResponseDto, type WeeklySchedule, type WhatsAppConfig, type WhatsAppMessage, WhatsAppResource, type WhatsAppTemplate, WhatsAppTemplatesResource };
|