@degenerate/generic 0.1.13 → 0.1.14
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/application/database/index.d.ts +11 -0
- package/dist/application/database/index.d.ts.map +1 -0
- package/dist/application/database/index.js +30 -0
- package/dist/models/safe/transactions/rules-transactions-models.d.ts +88 -0
- package/dist/models/safe/transactions/rules-transactions-models.d.ts.map +1 -1
- package/dist/models/safe/transactions/rules-transactions-models.js +26 -1
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './firestore/generics/add-items-to-database';
|
|
2
|
+
export * from './firestore/generics/add-or-update-items-to-database';
|
|
3
|
+
export * from './firestore/generics/create-database-change-information';
|
|
4
|
+
export * from './firestore/generics/delete-items-on-database';
|
|
5
|
+
export * from './firestore/generics/get-item-from-database';
|
|
6
|
+
export * from './firestore/generics/get-items-different-path-on-database';
|
|
7
|
+
export * from './firestore/generics/get-items-from-database';
|
|
8
|
+
export * from './firestore/generics/update-items-on-database';
|
|
9
|
+
export * from './firestore/generics/update-items-properties-on-database';
|
|
10
|
+
export * from './firestore/path-references/audit-log/create-audit-log-col-ref';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/application/database/index.ts"],"names":[],"mappings":"AACA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sDAAsD,CAAC;AACrE,cAAc,yDAAyD,CAAC;AACxE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AAGzE,cAAc,gEAAgE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
//#region firestore generics
|
|
18
|
+
__exportStar(require("./firestore/generics/add-items-to-database"), exports);
|
|
19
|
+
__exportStar(require("./firestore/generics/add-or-update-items-to-database"), exports);
|
|
20
|
+
__exportStar(require("./firestore/generics/create-database-change-information"), exports);
|
|
21
|
+
__exportStar(require("./firestore/generics/delete-items-on-database"), exports);
|
|
22
|
+
__exportStar(require("./firestore/generics/get-item-from-database"), exports);
|
|
23
|
+
__exportStar(require("./firestore/generics/get-items-different-path-on-database"), exports);
|
|
24
|
+
__exportStar(require("./firestore/generics/get-items-from-database"), exports);
|
|
25
|
+
__exportStar(require("./firestore/generics/update-items-on-database"), exports);
|
|
26
|
+
__exportStar(require("./firestore/generics/update-items-properties-on-database"), exports);
|
|
27
|
+
//#endregion firestore generics
|
|
28
|
+
//#region path references
|
|
29
|
+
__exportStar(require("./firestore/path-references/audit-log/create-audit-log-col-ref"), exports);
|
|
30
|
+
//#endregion path references
|
|
@@ -185,6 +185,7 @@ export declare const ISAFETransactionRuleSetSchema: z.ZodObject<z.objectUtil.ext
|
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
187
|
}>;
|
|
188
|
+
export type ISAFETransactionRuleSet = z.infer<typeof ISAFETransactionRuleSetSchema>;
|
|
188
189
|
/**
|
|
189
190
|
* This is the schema for the add rule set transaction
|
|
190
191
|
*/
|
|
@@ -379,6 +380,35 @@ export declare const ISAFETransactionRuleSetAddSchema: z.ZodObject<z.objectUtil.
|
|
|
379
380
|
};
|
|
380
381
|
};
|
|
381
382
|
}>;
|
|
383
|
+
export type ISAFETransactionRuleSetAdd = z.infer<typeof ISAFETransactionRuleSetAddSchema>;
|
|
384
|
+
/**
|
|
385
|
+
* This is the schema for the add rule set transaction response
|
|
386
|
+
*/
|
|
387
|
+
export declare const ISafeTransactionRuleSetAddResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
388
|
+
successful: z.ZodBoolean;
|
|
389
|
+
error: z.ZodOptional<z.ZodString>;
|
|
390
|
+
}, {
|
|
391
|
+
data: z.ZodObject<{
|
|
392
|
+
id: z.ZodString;
|
|
393
|
+
}, "strip", z.ZodTypeAny, {
|
|
394
|
+
id: string;
|
|
395
|
+
}, {
|
|
396
|
+
id: string;
|
|
397
|
+
}>;
|
|
398
|
+
}>, "strip", z.ZodTypeAny, {
|
|
399
|
+
successful: boolean;
|
|
400
|
+
data: {
|
|
401
|
+
id: string;
|
|
402
|
+
};
|
|
403
|
+
error?: string | undefined;
|
|
404
|
+
}, {
|
|
405
|
+
successful: boolean;
|
|
406
|
+
data: {
|
|
407
|
+
id: string;
|
|
408
|
+
};
|
|
409
|
+
error?: string | undefined;
|
|
410
|
+
}>;
|
|
411
|
+
export type ISafeTransactionRuleSetAddResponse = z.infer<typeof ISafeTransactionRuleSetAddResponseSchema>;
|
|
382
412
|
/**
|
|
383
413
|
* This is the schema for the update rule set transaction
|
|
384
414
|
*/
|
|
@@ -502,6 +532,35 @@ export declare const ISAFETransactionRuleSetUpdateSchema: z.ZodObject<z.objectUt
|
|
|
502
532
|
};
|
|
503
533
|
};
|
|
504
534
|
}>;
|
|
535
|
+
export type ISAFETransactionRuleSetUpdate = z.infer<typeof ISAFETransactionRuleSetUpdateSchema>;
|
|
536
|
+
/**
|
|
537
|
+
* This is the schema for the update rule set transaction response
|
|
538
|
+
*/
|
|
539
|
+
export declare const ISafeTransactionRuleSetUpdateResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
540
|
+
successful: z.ZodBoolean;
|
|
541
|
+
error: z.ZodOptional<z.ZodString>;
|
|
542
|
+
}, {
|
|
543
|
+
data: z.ZodObject<{
|
|
544
|
+
id: z.ZodString;
|
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
|
546
|
+
id: string;
|
|
547
|
+
}, {
|
|
548
|
+
id: string;
|
|
549
|
+
}>;
|
|
550
|
+
}>, "strip", z.ZodTypeAny, {
|
|
551
|
+
successful: boolean;
|
|
552
|
+
data: {
|
|
553
|
+
id: string;
|
|
554
|
+
};
|
|
555
|
+
error?: string | undefined;
|
|
556
|
+
}, {
|
|
557
|
+
successful: boolean;
|
|
558
|
+
data: {
|
|
559
|
+
id: string;
|
|
560
|
+
};
|
|
561
|
+
error?: string | undefined;
|
|
562
|
+
}>;
|
|
563
|
+
export type ISafeTransactionRuleSetUpdateResponse = z.infer<typeof ISafeTransactionRuleSetUpdateResponseSchema>;
|
|
505
564
|
/**
|
|
506
565
|
* This is the schema for the remove rule set transaction
|
|
507
566
|
*/
|
|
@@ -625,4 +684,33 @@ export declare const ISAFETransactionRuleSetDeleteSchema: z.ZodObject<z.objectUt
|
|
|
625
684
|
};
|
|
626
685
|
};
|
|
627
686
|
}>;
|
|
687
|
+
export type ISAFETransactionRuleSetDelete = z.infer<typeof ISAFETransactionRuleSetDeleteSchema>;
|
|
688
|
+
/**
|
|
689
|
+
* This is the schema for the remove rule set transaction response
|
|
690
|
+
*/
|
|
691
|
+
export declare const ISafeTransactionRuleSetDeleteResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
692
|
+
successful: z.ZodBoolean;
|
|
693
|
+
error: z.ZodOptional<z.ZodString>;
|
|
694
|
+
}, {
|
|
695
|
+
data: z.ZodObject<{
|
|
696
|
+
id: z.ZodString;
|
|
697
|
+
}, "strip", z.ZodTypeAny, {
|
|
698
|
+
id: string;
|
|
699
|
+
}, {
|
|
700
|
+
id: string;
|
|
701
|
+
}>;
|
|
702
|
+
}>, "strip", z.ZodTypeAny, {
|
|
703
|
+
successful: boolean;
|
|
704
|
+
data: {
|
|
705
|
+
id: string;
|
|
706
|
+
};
|
|
707
|
+
error?: string | undefined;
|
|
708
|
+
}, {
|
|
709
|
+
successful: boolean;
|
|
710
|
+
data: {
|
|
711
|
+
id: string;
|
|
712
|
+
};
|
|
713
|
+
error?: string | undefined;
|
|
714
|
+
}>;
|
|
715
|
+
export type ISafeTransactionRuleSetDeleteResponse = z.infer<typeof ISafeTransactionRuleSetDeleteResponseSchema>;
|
|
628
716
|
//# sourceMappingURL=rules-transactions-models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-transactions-models.d.ts","sourceRoot":"","sources":["../../../../src/models/safe/transactions/rules-transactions-models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"rules-transactions-models.d.ts","sourceRoot":"","sources":["../../../../src/models/safe/transactions/rules-transactions-models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,4BAA4B,CAAC;AAKpC;;GAEG;AACH,oBAAY,wBAAwB;IAChC,QAAQ,aAAa;CACxB;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,yBAEzC,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;EAItD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC;AAEhH;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG;;GAEG;AACH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;EAItD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ISAFETransactionRuleSetDeleteSchema = exports.ISAFETransactionRuleSetUpdateSchema = exports.ISAFETransactionRuleSetAddSchema = exports.ISAFETransactionRuleSetSchema = exports.ISAFETransactionRuleSetDataSchema = exports.SAFERulesTransactionTypeSchema = exports.SAFERulesTransactionType = void 0;
|
|
3
|
+
exports.ISafeTransactionRuleSetDeleteResponseSchema = exports.ISAFETransactionRuleSetDeleteSchema = exports.ISafeTransactionRuleSetUpdateResponseSchema = exports.ISAFETransactionRuleSetUpdateSchema = exports.ISafeTransactionRuleSetAddResponseSchema = exports.ISAFETransactionRuleSetAddSchema = exports.ISAFETransactionRuleSetSchema = exports.ISAFETransactionRuleSetDataSchema = exports.SAFERulesTransactionTypeSchema = exports.SAFERulesTransactionType = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* This contains the transactions for the SAFE Rules from the safe network functio s.
|
|
6
6
|
*/
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
const share_rule_models_1 = require("../../rules/share-rule-models");
|
|
9
9
|
const safe_transaction_models_1 = require("../safe-transaction-models");
|
|
10
|
+
const request_response_models_1 = require("../../generic/request-response-models");
|
|
10
11
|
//#region Enums
|
|
11
12
|
/**
|
|
12
13
|
* This contains the enums for the authorities objects in the zod format.
|
|
@@ -52,6 +53,14 @@ exports.ISAFETransactionRuleSetAddSchema = exports.ISAFETransactionRuleSetSchema
|
|
|
52
53
|
data: exports.ISAFETransactionRuleSetDataSchema,
|
|
53
54
|
}),
|
|
54
55
|
});
|
|
56
|
+
/**
|
|
57
|
+
* This is the schema for the add rule set transaction response
|
|
58
|
+
*/
|
|
59
|
+
exports.ISafeTransactionRuleSetAddResponseSchema = request_response_models_1.IGenericResponseSchema.extend({
|
|
60
|
+
data: zod_1.z.object({
|
|
61
|
+
id: zod_1.z.string(),
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
55
64
|
/**
|
|
56
65
|
* This is the schema for the update rule set transaction
|
|
57
66
|
*/
|
|
@@ -61,6 +70,14 @@ exports.ISAFETransactionRuleSetUpdateSchema = safe_transaction_models_1.ISAFETra
|
|
|
61
70
|
data: exports.ISAFETransactionRuleSetDataSchema,
|
|
62
71
|
}),
|
|
63
72
|
});
|
|
73
|
+
/**
|
|
74
|
+
* This is the schema for the update rule set transaction response
|
|
75
|
+
*/
|
|
76
|
+
exports.ISafeTransactionRuleSetUpdateResponseSchema = request_response_models_1.IGenericResponseSchema.extend({
|
|
77
|
+
data: zod_1.z.object({
|
|
78
|
+
id: zod_1.z.string(),
|
|
79
|
+
}),
|
|
80
|
+
});
|
|
64
81
|
/**
|
|
65
82
|
* This is the schema for the remove rule set transaction
|
|
66
83
|
*/
|
|
@@ -70,4 +87,12 @@ exports.ISAFETransactionRuleSetDeleteSchema = safe_transaction_models_1.ISAFETra
|
|
|
70
87
|
data: exports.ISAFETransactionRuleSetDataSchema,
|
|
71
88
|
}),
|
|
72
89
|
});
|
|
90
|
+
/**
|
|
91
|
+
* This is the schema for the remove rule set transaction response
|
|
92
|
+
*/
|
|
93
|
+
exports.ISafeTransactionRuleSetDeleteResponseSchema = request_response_models_1.IGenericResponseSchema.extend({
|
|
94
|
+
data: zod_1.z.object({
|
|
95
|
+
id: zod_1.z.string(),
|
|
96
|
+
}),
|
|
97
|
+
});
|
|
73
98
|
//#endregion RuleSet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@degenerate/generic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "This contains the generic information needed for the ShareData Adaptive Framework Ecosystem (SAFE) network",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"jsonwebtoken": "^9.0.2",
|
|
55
55
|
"zod": "^3.23.8"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "b8f9a0c671efadbfe465b4672b60480bdada5323"
|
|
58
58
|
}
|