@or-sdk/idw 4.7.0-beta.1899.0 → 4.7.0-beta.1901.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDWBaseConfig, ListMemories, Memory, MemoryCreateData, MemoryUpdateData
|
|
1
|
+
import { IDWBaseConfig, ListMemories, Memory, MemoryCreateData, MemoryUpdateData } from '../types';
|
|
2
2
|
import { BaseApi } from './BaseApi';
|
|
3
3
|
export declare class MemoryApi extends BaseApi {
|
|
4
4
|
constructor(config: IDWBaseConfig);
|
|
@@ -8,6 +8,6 @@ export declare class MemoryApi extends BaseApi {
|
|
|
8
8
|
deleteAllMemories(): Promise<void>;
|
|
9
9
|
updateMemory(id: string, data: MemoryUpdateData): Promise<Memory>;
|
|
10
10
|
createMemory(data: MemoryCreateData): Promise<Memory>;
|
|
11
|
-
getSuggestedMemory(): Promise<
|
|
11
|
+
getSuggestedMemory(): Promise<ListMemories>;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=memoryApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoryApi.d.ts","sourceRoot":"","sources":["../../../src/api/memoryApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"memoryApi.d.ts","sourceRoot":"","sources":["../../../src/api/memoryApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACnG,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,SAAU,SAAQ,OAAO;gBACxB,MAAM,EAAE,aAAa;IAQjC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAYtC,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC;IAUvC,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAavC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYlC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAejE,YAAY,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAWrD,kBAAkB,IAAI,OAAO,CAAC,YAAY,CAAC;CAK5C"}
|
|
@@ -5,5 +5,4 @@ export type Memory = Omit<SimpleNode, 'icon' | 'description'> & {
|
|
|
5
5
|
export type ListMemories = Memory[];
|
|
6
6
|
export type MemoryCreateData = Pick<Memory, 'id' | 'name' | 'serviceLink'>;
|
|
7
7
|
export type MemoryUpdateData = Partial<MemoryCreateData>;
|
|
8
|
-
export type SuggestedMemory = ListMemories;
|
|
9
8
|
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/types/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAC,aAAa,CAAC,GAAG;IAAC,WAAW,EAAE,MAAM,CAAC;CAAC,CAAC;AACrF,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC;AACpC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,GAAE,aAAa,CAAC,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/types/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAC,aAAa,CAAC,GAAG;IAAC,WAAW,EAAE,MAAM,CAAC;CAAC,CAAC;AACrF,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC;AACpC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,GAAE,aAAa,CAAC,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/api/memoryApi.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDWBaseConfig, ListMemories, Memory, MemoryCreateData, MemoryUpdateData
|
|
1
|
+
import { IDWBaseConfig, ListMemories, Memory, MemoryCreateData, MemoryUpdateData } from '../types';
|
|
2
2
|
import { BaseApi } from './BaseApi';
|
|
3
3
|
|
|
4
4
|
export class MemoryApi extends BaseApi {
|
|
@@ -83,7 +83,7 @@ export class MemoryApi extends BaseApi {
|
|
|
83
83
|
/**
|
|
84
84
|
* @description Get all suggested (unlinked) memory
|
|
85
85
|
*/
|
|
86
|
-
getSuggestedMemory(): Promise<
|
|
86
|
+
getSuggestedMemory(): Promise<ListMemories> {
|
|
87
87
|
return this.providers.makeRequest({
|
|
88
88
|
route: this.buildRoute('memories/suggested'),
|
|
89
89
|
});
|
package/src/types/memory.ts
CHANGED
|
@@ -4,4 +4,3 @@ export type Memory = Omit<SimpleNode, 'icon'|'description'> & {serviceLink: stri
|
|
|
4
4
|
export type ListMemories = Memory[];
|
|
5
5
|
export type MemoryCreateData = Pick<Memory, 'id' | 'name'| 'serviceLink'>;
|
|
6
6
|
export type MemoryUpdateData = Partial<MemoryCreateData>;
|
|
7
|
-
export type SuggestedMemory = ListMemories;
|