@seeka-labs/sdk-apps-core 2.2.5 → 3.2.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/lib/sdk-apps-core.module.js +1 -2
- package/dist/lib/types/index.d.ts +2 -0
- package/dist/lib/types/index.d.ts.map +1 -1
- package/dist/lib/types/models/index.d.ts +13 -0
- package/dist/lib/types/models/index.d.ts.map +1 -0
- package/dist/lib/types/ui/index.d.ts +8 -0
- package/dist/lib/types/ui/index.d.ts.map +1 -0
- package/package.json +5 -4
- package/dist/lib/sdk-apps-core.module.js.map +0 -7
|
@@ -1,2 +1 @@
|
|
|
1
|
-
var o=e=>"seeka_app_"+e+"_at_app",p=e=>"seeka_app_"+e+"_at_core",a="X-Seeka-App-Token",
|
|
2
|
-
//# sourceMappingURL=sdk-apps-core.module.js.map
|
|
1
|
+
var o=e=>"seeka_app_"+e+"_at_app",p=e=>"seeka_app_"+e+"_at_core",a="X-Seeka-App-Token",r="X-Seeka-CoreApi-Token",t="at_app",c="at_core";export{a as appAccessTokenHeaderName,t as appAccessTokenQueryParamName,r as coreApiAccessTokenHeaderName,c as coreApiAccessTokenQueryParamName,o as getAppAccessTokenCookieName,p as getCoreApiAccessTokenCookieName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC;AACrB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type SeekaAppInstallContext<TInstallState> = {
|
|
2
|
+
organisationId: string;
|
|
3
|
+
organisationBrandId: string;
|
|
4
|
+
applicationInstallId: string;
|
|
5
|
+
installedAt: string;
|
|
6
|
+
installationState: TInstallState;
|
|
7
|
+
grantedPermissions?: string[];
|
|
8
|
+
};
|
|
9
|
+
export interface ServerlessFunctionExecutionContext {
|
|
10
|
+
invocationId?: string;
|
|
11
|
+
functionName?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/index.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,sBAAsB,CAAC,aAAa,IAAI;IAGlD,cAAc,EAAE,MAAM,CAAC;IAEvB,mBAAmB,EAAE,MAAM,CAAC;IAE5B,oBAAoB,EAAE,MAAM,CAAC;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,iBAAiB,EAAE,aAAa,CAAC;IAEjC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B,CAAA;AAED,MAAM,WAAW,kCAAkC;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B,CAAC,SAAS;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;CACzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seeka-labs/sdk-apps-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"description": "Seeka - Apps SDK - Core",
|
|
5
5
|
"author": "SEEKA <platform@seeka.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,16 +21,17 @@
|
|
|
21
21
|
"module": "./dist/lib/sdk-apps-core.module.js",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"clean": "rimraf build package dist",
|
|
24
|
-
"
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
|
+
"build": "yarn esbuild src/index.ts --outfile=dist/lib/sdk-apps-core.module.js --bundle --analyze --platform=node --format=esm --packages=external --minify && yarn tsc --emitDeclarationOnly",
|
|
25
26
|
"dev": "yarn esbuild src/index.ts --outfile=dist/lib/sdk-apps-core.module.js --bundle --analyze --platform=node --format=esm --packages=external --sourcemap && yarn tsc --emitDeclarationOnly",
|
|
26
27
|
"build:ci": "yarn run build"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"@types/node": "^
|
|
30
|
+
"@types/node": "^22",
|
|
30
31
|
"esbuild": "^0",
|
|
31
32
|
"rimraf": "^6",
|
|
32
33
|
"typescript": "^5",
|
|
33
34
|
"yup": "^1"
|
|
34
35
|
},
|
|
35
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "2e406e463088cdf6ccdb2e2b15eb35c369b729c0"
|
|
36
37
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/api/auth/index.ts"],
|
|
4
|
-
"sourcesContent": ["\nexport const getAppAccessTokenCookieName = (appId: string) => 'seeka_app_' + appId + '_at_app';\nexport const getCoreApiAccessTokenCookieName = (appId: string) => 'seeka_app_' + appId + '_at_core';\nexport const appAccessTokenHeaderName = 'X-Seeka-App-Token';\nexport const coreApiAccessTokenHeaderName = 'X-Seeka-CoreApi-Token';\nexport const appAccessTokenQueryParamName = 'at_app';\nexport const coreApiAccessTokenQueryParamName = 'at_core';"],
|
|
5
|
-
"mappings": "AACO,IAAMA,EAA+BC,GAAkB,aAAeA,EAAQ,UACxEC,EAAmCD,GAAkB,aAAeA,EAAQ,WAC5EE,EAA2B,oBAC3BC,EAA+B,wBAC/BC,EAA+B,SAC/BC,EAAmC",
|
|
6
|
-
"names": ["getAppAccessTokenCookieName", "appId", "getCoreApiAccessTokenCookieName", "appAccessTokenHeaderName", "coreApiAccessTokenHeaderName", "appAccessTokenQueryParamName", "coreApiAccessTokenQueryParamName"]
|
|
7
|
-
}
|