@superblocksteam/sdk 2.0.9 → 2.0.10-next.1
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/client.d.ts +14 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +44 -10
- package/dist/client.js.map +1 -1
- package/dist/dev-utils/dev-logger.mjs +1 -1
- package/dist/dev-utils/dev-logger.mjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk.d.ts +12 -0
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +13 -1
- package/dist/sdk.js.map +1 -1
- package/package.json +6 -6
- package/src/client.ts +78 -10
- package/src/dev-utils/dev-logger.mts +1 -1
- package/src/index.ts +1 -0
- package/src/sdk.ts +29 -0
- package/tsconfig.tsbuildinfo +1 -1
package/src/sdk.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
fetchCurrentUser,
|
|
12
12
|
pushApi,
|
|
13
13
|
pushApplication,
|
|
14
|
+
pushApplicationCodeMode,
|
|
14
15
|
registerComponents,
|
|
15
16
|
uploadComponents,
|
|
16
17
|
validateGitSetup,
|
|
@@ -297,6 +298,34 @@ export class SuperblocksSdk {
|
|
|
297
298
|
applicationConfig,
|
|
298
299
|
});
|
|
299
300
|
}
|
|
301
|
+
|
|
302
|
+
async pushApplicationCodeMode({
|
|
303
|
+
applicationId,
|
|
304
|
+
localDirectoryPath,
|
|
305
|
+
branch,
|
|
306
|
+
commitId,
|
|
307
|
+
commitMessage,
|
|
308
|
+
forcePush,
|
|
309
|
+
}: {
|
|
310
|
+
applicationId: string;
|
|
311
|
+
localDirectoryPath: string;
|
|
312
|
+
branch: string;
|
|
313
|
+
commitId: string;
|
|
314
|
+
commitMessage: string;
|
|
315
|
+
forcePush?: boolean;
|
|
316
|
+
}) {
|
|
317
|
+
return pushApplicationCodeMode({
|
|
318
|
+
applicationId,
|
|
319
|
+
token: this.token,
|
|
320
|
+
superblocksBaseUrl: this.superblocksBaseUrl,
|
|
321
|
+
branch,
|
|
322
|
+
localDirectoryPath,
|
|
323
|
+
commitId,
|
|
324
|
+
commitMessage,
|
|
325
|
+
forcePush,
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
|
|
300
329
|
async pushApi({
|
|
301
330
|
apiId,
|
|
302
331
|
apiConfig,
|