uranio 1.0.5 → 1.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.
@@ -21,18 +21,18 @@ export declare class DynamoDBAtomClient<S extends atom_types.dynamodb_atom> {
21
21
  attribute_type: I;
22
22
  attribute_value: dynamodb_types.AttrValue<I>;
23
23
  }): Promise<S | null>;
24
- putAtom(shape: Partial<S>): Promise<import("@aws-sdk/client-dynamodb").PutItemCommandOutput>;
24
+ putAtom(shape: Partial<S>): Promise<any>;
25
25
  updateAtomByPrimaryIndex<I extends dynamodb_types.AttrType>({ attribute_name, attribute_type, attribute_value, item, }: {
26
26
  attribute_name: string;
27
27
  attribute_type: I;
28
28
  attribute_value: dynamodb_types.AttrValue<I>;
29
29
  item: Record<string, any>;
30
- }): Promise<import("@aws-sdk/client-dynamodb").UpdateItemCommandOutput>;
30
+ }): Promise<any>;
31
31
  deleteAtomByPrimaryIndex<I extends dynamodb_types.AttrType>({ attribute_name, attribute_type, attribute_value, }: {
32
32
  attribute_name: string;
33
33
  attribute_type: I;
34
34
  attribute_value: dynamodb_types.AttrValue<I>;
35
- }): Promise<import("@aws-sdk/client-dynamodb").DeleteItemCommandOutput>;
35
+ }): Promise<any>;
36
36
  isPrimaryIndexValueUnique<I extends dynamodb_types.AttrType>({ attribute_name, attribute_type, attribute_value, }: {
37
37
  attribute_name: string;
38
38
  attribute_type: I;
@@ -52,8 +52,8 @@ export declare class DynamoDBAtomClient<S extends atom_types.dynamodb_atom> {
52
52
  }
53
53
  export declare class DynamoDBAtomWithIdClient<T extends Record<string, any>> extends DynamoDBAtomClient<T> {
54
54
  getAtomById(id: string): Promise<T | null>;
55
- updateAtomById(id: string, item: Record<string, any>): Promise<import("@aws-sdk/client-dynamodb").UpdateItemCommandOutput>;
56
- deleteById(id: string): Promise<import("@aws-sdk/client-dynamodb").DeleteItemCommandOutput>;
55
+ updateAtomById(id: string, item: Record<string, any>): Promise<any>;
56
+ deleteById(id: string): Promise<any>;
57
57
  isIdUnique(id: string): Promise<boolean>;
58
58
  }
59
59
  export declare class DynamoDBAtomWithCompositePrimaryKeyClient<T extends Record<string, any>> extends DynamoDBAtomClient<T> {
@@ -73,7 +73,7 @@ export declare class DynamoDBAtomWithCompositePrimaryKeyClient<T extends Record<
73
73
  sort_key_type: S;
74
74
  sort_key_value: dynamodb_types.AttrValue<S>;
75
75
  item: Record<string, any>;
76
- }): Promise<import("@aws-sdk/client-dynamodb").UpdateItemCommandOutput>;
76
+ }): Promise<any>;
77
77
  deleteByCompositeKey<P extends dynamodb_types.AttrType, S extends dynamodb_types.AttrType>({ partition_key_name, partition_key_type, partition_key_value, sort_key_name, sort_key_type, sort_key_value, }: {
78
78
  partition_key_name: string;
79
79
  partition_key_type: P;
@@ -81,5 +81,5 @@ export declare class DynamoDBAtomWithCompositePrimaryKeyClient<T extends Record<
81
81
  sort_key_name: string;
82
82
  sort_key_type: S;
83
83
  sort_key_value: dynamodb_types.AttrValue<S>;
84
- }): Promise<import("@aws-sdk/client-dynamodb").DeleteItemCommandOutput>;
84
+ }): Promise<any>;
85
85
  }
@@ -35,9 +35,6 @@ class MongoDBClient {
35
35
  await this.client.connect();
36
36
  index_1.log.trace('MongoDB connected.');
37
37
  }
38
- // log.trace('Connecting...');
39
- // await this.client.connect();
40
- // log.trace('Connected.');
41
38
  }
42
39
  async disconnect() {
43
40
  index_1.log.trace('Disconnecting...');
@@ -1 +1 @@
1
- {"version":3,"file":"mongodb.js","sourceRoot":"","sources":["../../src/client/mongodb.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,qCAIiB;AACjB,wCAAiC;AAOjC,MAAa,aAAa;IAGxB,YAAY,MAA2B;QACrC,MAAM,OAAO,GAAG;YACd,SAAS,EAAE;gBACT,OAAO,EAAE,0BAAgB,CAAC,EAAE;gBAC5B,MAAM,EAAE,IAAI;gBACZ,iBAAiB,EAAE,IAAI;aACxB;YACD,WAAW,EAAE,EAAE;YACf,WAAW,EAA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B,EAAE,IAAI;aACxB;YACD,WAAW,EAAE,EAAE;YACf,WAAW,EAAE,CAAC;SACO,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI,qBAAW,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACnD,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC,CAAC,CAAC;IACnE,CAAC;IACM,KAAK,CAAC,OAAO;QAClB,IAAI,CAAC;YACH,mEAAmE;YACnE,MAAM,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC;YAC1C,WAAG,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAC7C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,WAAG,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YACtC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YAC5B,WAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IACM,KAAK,CAAC,UAAU;QACrB,WAAG,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAC1B,WAAG,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAC7B,CAAC;CACF;AAhCD,sCAgCC"}
@@ -7,30 +7,4 @@
7
7
  *
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- // export type unique<T> = T & {__uranio: 'unique'};
11
- // export type primary<T> = T & {__uranio: 'primary'};
12
- // type PrimaryAttribute<A extends atom> = {
13
- // [K in keyof A]: A[K] extends {__uranio: 'primary'} ? K : never;
14
- // }[keyof A];
15
- // export type Shape<A extends atom> = Omit<A, PrimaryAttribute<A>>;
16
- // export type Shape<A extends atom> = Omit<A, '_id'>;
17
- // import {atom, Where, Shape, OrderBy} from './index';
18
- // export interface AtomClient<S extends atom> {
19
- // get_atom(where: Where<S>): Promise<S | null>;
20
- // get_atoms({
21
- // where,
22
- // order,
23
- // limit
24
- // }:{
25
- // where: Where<S>,
26
- // order?: OrderBy,
27
- // limit?: string
28
- // }): Promise<S[]>;
29
- // put_atom(shape: Shape<S>): Promise<any>;
30
- // put_atoms(atoms: Shape<S>[]): Promise<any>;
31
- // update_atom(where: Where<S>, atom: Partial<S>): Promise<any>;
32
- // update_atoms(where: Where<S>, atom: Partial<S>): Promise<any>;
33
- // delete_atom(where: Where<S>): Promise<any>;
34
- // delete_atoms(where: Where<S>): Promise<any>;
35
- // }
36
10
  //# sourceMappingURL=atom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"atom.js","sourceRoot":"","sources":["../../src/types/atom.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAkBH,oDAAoD;AAEpD,sDAAsD;AAEtD,4CAA4C;AAC5C,oEAAoE;AACpE,cAAc;AAEd,oEAAoE;AAEpE,sDAAsD;AAEtD,uDAAuD;AAEvD,gDAAgD;AAChD,kDAAkD;AAClD,gBAAgB;AAChB,aAAa;AACb,aAAa;AACb,YAAY;AACZ,QAAQ;AACR,uBAAuB;AACvB,uBAAuB;AACvB,qBAAqB;AACrB,sBAAsB;AACtB,6CAA6C;AAC7C,gDAAgD;AAChD,kEAAkE;AAClE,mEAAmE;AACnE,gDAAgD;AAChD,iDAAiD;AACjD,IAAI"}
1
+ {"version":3,"file":"atom.js","sourceRoot":"","sources":["../../src/types/atom.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}