@livechat/developer-studio-api 3.0.5 → 3.0.6
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -28
- package/dist/index.mjs +8 -28
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
};
|