@thefittingroom/sdk 2.0.3 → 2.0.4
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/.env.tmp +25 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.min.js +1 -1
- package/package.json +4 -2
- package/firebase-service-account/firebase-adminsdk-privatekey.json +0 -12
- package/go.mod +0 -7
- package/tygo.yaml +0 -15
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/fetcher.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/fetcher.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/fetcher.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/requests.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/requests.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/requests.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/responses.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/responses.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/responses.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/shop.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/shop.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/shop.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/utils.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/utils.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/api/utils.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/firebase/firebase-error.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/firebase/firebase-error.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/firebase/firebase-error.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/firebase/firebase-user.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/firebase/firebase-user.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/firebase/firebase-user.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/firebase/firebase.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/firebase/firebase.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/firebase/firebase.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/async.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/async.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/async.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/config.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/config.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/config.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/date.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/date.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/date.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/errors.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/errors.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/helpers/errors.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/index.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/index.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/index.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/types/index.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/types/index.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/types/index.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/types/measurement.d.ts +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/types/measurement.js +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/esm/types/measurement.js.map +0 -0
- /package/.rollup.cache/home/{codeliger/code/thefittingroom → runner/work/shop-sdk}/shop-sdk/dist/tsconfig.tsbuildinfo +0 -0
package/.env.tmp
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- firebase configs start -->
|
|
2
|
+
DEV_FIREBASE_API_KEY=AIzaSyDfjBWzpmzb-mhGN8VSURxzLg6nkzmKUD8
|
|
3
|
+
DEV_FIREBASE_AUTH_DOMAIN=fittingroom-dev-5d248.firebaseapp.com
|
|
4
|
+
DEV_FIREBASE_PROJECT_ID=fittingroom-dev-5d248
|
|
5
|
+
DEV_FIREBASE_STORAGE_BUCKET=fittingroom-dev-5d248.appspot.com
|
|
6
|
+
DEV_FIREBASE_MESSAGING_SENDER_ID=2298664147
|
|
7
|
+
DEV_FIREBASE_APP_ID=1:2298664147:web:340bda75cd5d25f3997026
|
|
8
|
+
DEV_FIREBASE_MEASUREMENT_ID=G-B7GDQ1Y9LL
|
|
9
|
+
<!-- firebase configs ends -->
|
|
10
|
+
DEV_API_ENDPOINT=https://tfr.dev.thefittingroom.xyz
|
|
11
|
+
DEV_VTO_TIMEOUT_MS=120000
|
|
12
|
+
DEV_AVATAR_TIMEOUT_MS=120000
|
|
13
|
+
|
|
14
|
+
<!-- firebase configs start -->
|
|
15
|
+
PROD_FIREBASE_API_KEY=AIzaSyA3kQ6w1vkA9l9lgY0nNACVPXe-QmP5T1Y
|
|
16
|
+
PROD_FIREBASE_AUTH_DOMAIN=fittingroom-prod.firebaseapp.com
|
|
17
|
+
PROD_FIREBASE_PROJECT_ID=fittingroom-prod
|
|
18
|
+
PROD_FIREBASE_STORAGE_BUCKET=fittingroom-prod.appspot.com
|
|
19
|
+
PROD_FIREBASE_MESSAGING_SENDER_ID=965656825574
|
|
20
|
+
PROD_FIREBASE_APP_ID=1:965656825574:web:933493cddc73213bd43527
|
|
21
|
+
PROD_FIREBASE_MEASUREMENT_ID=G-XH9VV5N6EW
|
|
22
|
+
<!-- firebase configs ends -->
|
|
23
|
+
PROD_API_ENDPOINT=https://tfr.p.thefittingroom.xyz
|
|
24
|
+
PROD_VTO_TIMEOUT_MS=120000
|
|
25
|
+
PROD_AVATAR_TIMEOUT_MS=120000
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v2.0.
|
|
2
|
+
* thefittingroom v2.0.4 (2025-08-01T16:26:23.345Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
var e=Object.freeze({__proto__:null}),t=Object.freeze({__proto__:null});const n=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);s<128?t[n++]=s:s<2048?(t[n++]=s>>6|192,t[n++]=63&s|128):55296==(64512&s)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++r)),t[n++]=s>>18|240,t[n++]=s>>12&63|128,t[n++]=s>>6&63|128,t[n++]=63&s|128):(t[n++]=s>>12|224,t[n++]=s>>6&63|128,t[n++]=63&s|128)}return t},r={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){const s=e[t],i=t+1<e.length,o=i?e[t+1]:0,a=t+2<e.length,c=a?e[t+2]:0,u=s>>2,h=(3&s)<<4|o>>4;let l=(15&o)<<2|c>>6,d=63&c;a||(d=64,i||(l=64)),r.push(n[u],n[h],n[l],n[d])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(n(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const s=e[n++];if(s<128)t[r++]=String.fromCharCode(s);else if(s>191&&s<224){const i=e[n++];t[r++]=String.fromCharCode((31&s)<<6|63&i)}else if(s>239&&s<365){const i=((7&s)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(i>>10)),t[r++]=String.fromCharCode(56320+(1023&i))}else{const i=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&s)<<12|(63&i)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){const i=n[e.charAt(t++)],o=t<e.length?n[e.charAt(t)]:0;++t;const a=t<e.length?n[e.charAt(t)]:64;++t;const c=t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==o||null==a||null==c)throw new s;const u=i<<2|o>>4;if(r.push(u),64!==a){const e=o<<4&240|a>>2;if(r.push(e),64!==c){const e=a<<6&192|c;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thefittingroom/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "the fitting room SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
"clean": "rm -rf dist",
|
|
10
10
|
"clean:all": "rm -rf dist && rm -rf build && rm -rf .rollup.cache",
|
|
11
11
|
"build": "npm run clean && rollup --config",
|
|
12
|
-
"watch": "npm run clean && rollup --config -w"
|
|
12
|
+
"watch": "npm run clean && rollup --config -w",
|
|
13
|
+
"build:prod": "npm run clean && NODE_ENV=prod rollup --config",
|
|
14
|
+
"build:dev": "npm run clean && NODE_ENV=dev rollup --config"
|
|
13
15
|
},
|
|
14
16
|
"engines": {
|
|
15
17
|
"node": ">=20"
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "service_account",
|
|
3
|
-
"project_id": "fittingroom-dev-5d248",
|
|
4
|
-
"private_key_id": "0d6e688c7c8ae9cba7df87dea87239432b65979f",
|
|
5
|
-
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDj+1oZBj8Rlr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dmF6oo40YJFvl7ltU67ZBjJyBijkO2yDPwor3b\n2k+juf2HDR7Xkd79ckaHwqVN0MxNKFuIEDfZhR0Plx94xKUea7MKGRSHq3InHKZY\nef1qGwLeRsJd/0AZAUAvx0qobnWwL/iLlwUcoDWW8zPk649gZsvBQQKBgQCNQ46J\nqwd+ag8kBuZMCk84UD/j8LqdUgkD77fELDlA1mUdicN5FvcSh0R3uf42i+0sCWfe\nRAvLjP1DgJ1iAFahXs3DthXWG2pHtN1N1xvHzt72JVUPBRptOa8Lscoc7QFmcViD\nFYYJb46rJcwWPiY3nUI3zu5FuPExoQj4cO9eoQKBgQDAfLZNpr0S7Mh8zmOwCw+/\nIDGtd0se5CnJDQVybIq/BJQOnPPixvKM8DYP9FDYR2yVCQavIdq3VUKyLLHkXbaZ\nOKAqysMRcO8yXpsw7FZ2W2/1MG5GWuqPdSh6FcbVCEVY1BJGgF3pGN5qPijm7yU0\n83lLcrA0TzzuNuTPFEMo0A==\n-----END PRIVATE KEY-----\n",
|
|
6
|
-
"client_email": "firebase-adminsdk-7nif4@fittingroom-dev-5d248.iam.gserviceaccount.com",
|
|
7
|
-
"client_id": "118093212957908118911",
|
|
8
|
-
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
|
9
|
-
"token_uri": "https://oauth2.googleapis.com/token",
|
|
10
|
-
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
|
11
|
-
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-7nif4%40fittingroom-dev-5d248.iam.gserviceaccount.com"
|
|
12
|
-
}
|
package/go.mod
DELETED
package/tygo.yaml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
packages:
|
|
2
|
-
- path: "github.com/thefittingroom/tfr-backend/pkg/types/errors"
|
|
3
|
-
output_path: "src/api/errors.ts"
|
|
4
|
-
|
|
5
|
-
- path: "github.com/thefittingroom/tfr-backend/pkg/types/requests"
|
|
6
|
-
output_path: "src/api/requests.ts"
|
|
7
|
-
|
|
8
|
-
- path: "github.com/thefittingroom/tfr-backend/pkg/types/responses"
|
|
9
|
-
output_path: "src/api/responses.ts"
|
|
10
|
-
|
|
11
|
-
- path: "github.com/thefittingroom/tfr-backend/pkg/types/enums"
|
|
12
|
-
output_path: "src/api/enums.ts"
|
|
13
|
-
|
|
14
|
-
- path: "github.com/thefittingroom/tfr-backend/pkg/types/common"
|
|
15
|
-
output_path: "src/api/common.ts"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|