@etainabl/nodejs-sdk 1.2.19 → 1.2.20
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/cjs/api.d.ts +1 -0
- package/dist/cjs/api.js +1 -0
- package/dist/mjs/api.d.ts +1 -0
- package/dist/mjs/api.js +1 -0
- package/package.json +1 -1
- package/src/api.ts +1 -0
package/dist/cjs/api.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare const _default: (auth: AuthOptions, instanceOptions?: CreateAxiosDefault
|
|
|
21
21
|
createAccount: (data: any, options?: AxiosRequestConfig<any>) => Promise<any>;
|
|
22
22
|
removeAccount: (id: string, options?: AxiosRequestConfig<any>) => Promise<any>;
|
|
23
23
|
getAccountSchema: (options?: AxiosRequestConfig<any>) => Promise<any>;
|
|
24
|
+
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig<any>) => Promise<any>;
|
|
24
25
|
getAsset: (id: string, options?: AxiosRequestConfig<any>) => Promise<Asset>;
|
|
25
26
|
listAssets: (options?: AxiosRequestConfig<any>) => Promise<ETNPagedResponse<Asset>>;
|
|
26
27
|
updateAsset: (id: string, data: any, options?: AxiosRequestConfig<any>) => Promise<any>;
|
package/dist/cjs/api.js
CHANGED
|
@@ -207,6 +207,7 @@ exports.default = (auth, instanceOptions = {}) => {
|
|
|
207
207
|
createAccount: factory.create(etainablApi, 'accounts'),
|
|
208
208
|
removeAccount: factory.remove(etainablApi, 'accounts'),
|
|
209
209
|
getAccountSchema: factory.get(etainablApi, 'accounts', 'schema'),
|
|
210
|
+
invalidateAccountCache: factory.customWithId(etainablApi, 'put', 'accounts', 'invalidate-cache'),
|
|
210
211
|
// assets
|
|
211
212
|
getAsset: factory.getWithId(etainablApi, 'assets'),
|
|
212
213
|
listAssets: factory.list(etainablApi, 'assets'),
|
package/dist/mjs/api.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare const _default: (auth: AuthOptions, instanceOptions?: CreateAxiosDefault
|
|
|
21
21
|
createAccount: (data: any, options?: AxiosRequestConfig<any>) => Promise<any>;
|
|
22
22
|
removeAccount: (id: string, options?: AxiosRequestConfig<any>) => Promise<any>;
|
|
23
23
|
getAccountSchema: (options?: AxiosRequestConfig<any>) => Promise<any>;
|
|
24
|
+
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig<any>) => Promise<any>;
|
|
24
25
|
getAsset: (id: string, options?: AxiosRequestConfig<any>) => Promise<Asset>;
|
|
25
26
|
listAssets: (options?: AxiosRequestConfig<any>) => Promise<ETNPagedResponse<Asset>>;
|
|
26
27
|
updateAsset: (id: string, data: any, options?: AxiosRequestConfig<any>) => Promise<any>;
|
package/dist/mjs/api.js
CHANGED
|
@@ -197,6 +197,7 @@ export default (auth, instanceOptions = {}) => {
|
|
|
197
197
|
createAccount: factory.create(etainablApi, 'accounts'),
|
|
198
198
|
removeAccount: factory.remove(etainablApi, 'accounts'),
|
|
199
199
|
getAccountSchema: factory.get(etainablApi, 'accounts', 'schema'),
|
|
200
|
+
invalidateAccountCache: factory.customWithId(etainablApi, 'put', 'accounts', 'invalidate-cache'),
|
|
200
201
|
// assets
|
|
201
202
|
getAsset: factory.getWithId(etainablApi, 'assets'),
|
|
202
203
|
listAssets: factory.list(etainablApi, 'assets'),
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -253,6 +253,7 @@ export default (auth: AuthOptions, instanceOptions: CreateAxiosDefaults = {}) =>
|
|
|
253
253
|
createAccount: factory.create(etainablApi, 'accounts'),
|
|
254
254
|
removeAccount: factory.remove(etainablApi, 'accounts'),
|
|
255
255
|
getAccountSchema: factory.get(etainablApi, 'accounts', 'schema'),
|
|
256
|
+
invalidateAccountCache: factory.customWithId(etainablApi, 'put', 'accounts', 'invalidate-cache'),
|
|
256
257
|
|
|
257
258
|
// assets
|
|
258
259
|
getAsset: factory.getWithId<Asset>(etainablApi, 'assets'),
|