@livechat/developer-studio-api 3.0.5 → 3.0.7
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/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -29
- package/dist/index.mjs +9 -29
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2348,7 +2348,7 @@ declare const api: {
|
|
|
2348
2348
|
};
|
|
2349
2349
|
pat: {
|
|
2350
2350
|
readonly getPersonalAccessTokens: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<PatDto[], any>>;
|
|
2351
|
-
readonly createPersonalAccessToken: (name: string, scopes: PatScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<
|
|
2351
|
+
readonly createPersonalAccessToken: (name: string, scopes: PatScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<PatWithSecretDto>;
|
|
2352
2352
|
readonly deletePersonalAccessToken: (id: string, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void, any>>;
|
|
2353
2353
|
};
|
|
2354
2354
|
organization: {
|
|
@@ -2451,8 +2451,8 @@ declare const api: {
|
|
|
2451
2451
|
deleteVariable(appId: string, key: string): Promise<void>;
|
|
2452
2452
|
};
|
|
2453
2453
|
templates: {
|
|
2454
|
-
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates
|
|
2455
|
-
getRepositoryTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepositoryTemplates
|
|
2454
|
+
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppTemplates, any>>;
|
|
2455
|
+
getRepositoryTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppRepositoryTemplates, any>>;
|
|
2456
2456
|
};
|
|
2457
2457
|
push(payload: PushAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<PushAppResult, any>>;
|
|
2458
2458
|
pull(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppManifest, any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2348,7 +2348,7 @@ declare const api: {
|
|
|
2348
2348
|
};
|
|
2349
2349
|
pat: {
|
|
2350
2350
|
readonly getPersonalAccessTokens: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<PatDto[], any>>;
|
|
2351
|
-
readonly createPersonalAccessToken: (name: string, scopes: PatScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<
|
|
2351
|
+
readonly createPersonalAccessToken: (name: string, scopes: PatScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<PatWithSecretDto>;
|
|
2352
2352
|
readonly deletePersonalAccessToken: (id: string, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void, any>>;
|
|
2353
2353
|
};
|
|
2354
2354
|
organization: {
|
|
@@ -2451,8 +2451,8 @@ declare const api: {
|
|
|
2451
2451
|
deleteVariable(appId: string, key: string): Promise<void>;
|
|
2452
2452
|
};
|
|
2453
2453
|
templates: {
|
|
2454
|
-
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates
|
|
2455
|
-
getRepositoryTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepositoryTemplates
|
|
2454
|
+
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppTemplates, any>>;
|
|
2455
|
+
getRepositoryTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppRepositoryTemplates, any>>;
|
|
2456
2456
|
};
|
|
2457
2457
|
push(payload: PushAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<PushAppResult, any>>;
|
|
2458
2458
|
pull(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppManifest, any>>;
|
package/dist/index.js
CHANGED
|
@@ -3069,7 +3069,7 @@ var platformAccountsPersonalAccessTokenApi = {
|
|
|
3069
3069
|
scope: scopes.map((item) => item.name).filter((el) => el).join(",")
|
|
3070
3070
|
},
|
|
3071
3071
|
getPlatformAccountsClientConfig(authorization)
|
|
3072
|
-
).catch((error) => {
|
|
3072
|
+
).then(({ data }) => data).catch((error) => {
|
|
3073
3073
|
throw error.withCustomMessage(
|
|
3074
3074
|
"Personal Access Tokens couldn't be created."
|
|
3075
3075
|
);
|
|
@@ -5427,38 +5427,18 @@ var platformAdapterAppVariablesApi = {
|
|
|
5427
5427
|
var platformAdapterAppTemplatesApi = {
|
|
5428
5428
|
getTemplates(authorization) {
|
|
5429
5429
|
return __async(this, null, function* () {
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
);
|
|
5435
|
-
return response.data;
|
|
5436
|
-
} catch (error) {
|
|
5437
|
-
if (error instanceof Error) {
|
|
5438
|
-
throw new Error(
|
|
5439
|
-
`App templates couldn't be fetched. [${error.message}]`
|
|
5440
|
-
);
|
|
5441
|
-
}
|
|
5442
|
-
throw error;
|
|
5443
|
-
}
|
|
5430
|
+
return platformAdapterClientInstance.get(
|
|
5431
|
+
`/console/app/templates`,
|
|
5432
|
+
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5433
|
+
);
|
|
5444
5434
|
});
|
|
5445
5435
|
},
|
|
5446
5436
|
getRepositoryTemplates(authorization) {
|
|
5447
5437
|
return __async(this, null, function* () {
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
);
|
|
5453
|
-
return response.data;
|
|
5454
|
-
} catch (error) {
|
|
5455
|
-
if (error instanceof Error) {
|
|
5456
|
-
throw new Error(
|
|
5457
|
-
`App repository templates couldn't be fetched. [${error.message}]`
|
|
5458
|
-
);
|
|
5459
|
-
}
|
|
5460
|
-
throw error;
|
|
5461
|
-
}
|
|
5438
|
+
return platformAdapterClientInstance.get(
|
|
5439
|
+
`/console/app/templates/repository`,
|
|
5440
|
+
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5441
|
+
);
|
|
5462
5442
|
});
|
|
5463
5443
|
}
|
|
5464
5444
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -2968,7 +2968,7 @@ var platformAccountsPersonalAccessTokenApi = {
|
|
|
2968
2968
|
scope: scopes.map((item) => item.name).filter((el) => el).join(",")
|
|
2969
2969
|
},
|
|
2970
2970
|
getPlatformAccountsClientConfig(authorization)
|
|
2971
|
-
).catch((error) => {
|
|
2971
|
+
).then(({ data }) => data).catch((error) => {
|
|
2972
2972
|
throw error.withCustomMessage(
|
|
2973
2973
|
"Personal Access Tokens couldn't be created."
|
|
2974
2974
|
);
|
|
@@ -5326,38 +5326,18 @@ var platformAdapterAppVariablesApi = {
|
|
|
5326
5326
|
var platformAdapterAppTemplatesApi = {
|
|
5327
5327
|
getTemplates(authorization) {
|
|
5328
5328
|
return __async(this, null, function* () {
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
);
|
|
5334
|
-
return response.data;
|
|
5335
|
-
} catch (error) {
|
|
5336
|
-
if (error instanceof Error) {
|
|
5337
|
-
throw new Error(
|
|
5338
|
-
`App templates couldn't be fetched. [${error.message}]`
|
|
5339
|
-
);
|
|
5340
|
-
}
|
|
5341
|
-
throw error;
|
|
5342
|
-
}
|
|
5329
|
+
return platformAdapterClientInstance.get(
|
|
5330
|
+
`/console/app/templates`,
|
|
5331
|
+
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5332
|
+
);
|
|
5343
5333
|
});
|
|
5344
5334
|
},
|
|
5345
5335
|
getRepositoryTemplates(authorization) {
|
|
5346
5336
|
return __async(this, null, function* () {
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
);
|
|
5352
|
-
return response.data;
|
|
5353
|
-
} catch (error) {
|
|
5354
|
-
if (error instanceof Error) {
|
|
5355
|
-
throw new Error(
|
|
5356
|
-
`App repository templates couldn't be fetched. [${error.message}]`
|
|
5357
|
-
);
|
|
5358
|
-
}
|
|
5359
|
-
throw error;
|
|
5360
|
-
}
|
|
5337
|
+
return platformAdapterClientInstance.get(
|
|
5338
|
+
`/console/app/templates/repository`,
|
|
5339
|
+
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5340
|
+
);
|
|
5361
5341
|
});
|
|
5362
5342
|
}
|
|
5363
5343
|
};
|