@degenerate/endpoints 0.0.6 → 0.0.8
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/{endpoints/src/cors → cors}/authority/audience/get-set-audiences.d.ts +7 -7
- package/dist/cors/authority/audience/get-set-audiences.d.ts.map +1 -0
- package/dist/{endpoints/src/cors → cors}/authority/audience/get-set-audiences.js +18 -7
- package/dist/cors/authority/jwt/validate-jwt-authorities.d.ts.map +1 -0
- package/dist/{endpoints/src/cors → cors}/authority/jwt/validate-jwt-authorities.js +2 -3
- package/dist/cors/endpoints/authorities/validate-authorities-transaction.d.ts.map +1 -0
- package/dist/cors/endpoints/helpers/validate-request-body.d.ts.map +1 -0
- package/dist/cors/errors/all-error-handler.d.ts.map +1 -0
- package/dist/cors/errors/bad-request-handler.d.ts.map +1 -0
- package/dist/cors/errors/unauthorized-handler.d.ts.map +1 -0
- package/dist/cors/index.d.ts.map +1 -0
- package/dist/cors/routes/authorities.routes.d.ts.map +1 -0
- package/dist/{endpoints/src/cors → cors}/routes/authorities.routes.js +2 -2
- package/dist/cors/routes/events.routes.d.ts.map +1 -0
- package/dist/cors/routes/functions.routes.d.ts.map +1 -0
- package/dist/cors/routes/rules.routes.d.ts.map +1 -0
- package/dist/cors/routes/share-data.routes.d.ts.map +1 -0
- package/dist/examples/express-server/app.d.ts.map +1 -0
- package/dist/examples/express-server/server.d.ts.map +1 -0
- package/dist/{endpoints/src/index.d.ts.map → index.d.ts.map} +1 -1
- package/dist/schema/authorities.schema.d.ts +413 -0
- package/dist/schema/authorities.schema.d.ts.map +1 -0
- package/dist/schema/authorities.schema.js +88 -0
- package/dist/schema/transaction.schema.d.ts +8 -0
- package/dist/schema/transaction.schema.d.ts.map +1 -0
- package/dist/schema/transaction.schema.js +28 -0
- package/package.json +5 -4
- package/dist/endpoints/src/cors/authority/audience/get-set-audiences.d.ts.map +0 -1
- package/dist/endpoints/src/cors/authority/jwt/validate-jwt-authorities.d.ts.map +0 -1
- package/dist/endpoints/src/cors/endpoints/authorities/validate-authorities-transaction.d.ts.map +0 -1
- package/dist/endpoints/src/cors/endpoints/helpers/validate-request-body.d.ts.map +0 -1
- package/dist/endpoints/src/cors/errors/all-error-handler.d.ts.map +0 -1
- package/dist/endpoints/src/cors/errors/bad-request-handler.d.ts.map +0 -1
- package/dist/endpoints/src/cors/errors/unauthorized-handler.d.ts.map +0 -1
- package/dist/endpoints/src/cors/index.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/authorities.routes.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/events.routes.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/functions.routes.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/rules.routes.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/share-data.routes.d.ts.map +0 -1
- package/dist/endpoints/src/examples/express-server/app.d.ts.map +0 -1
- package/dist/endpoints/src/examples/express-server/server.d.ts.map +0 -1
- package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts +0 -20
- package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/audit-log/audit-log-errors.js +0 -31
- package/dist/generic/src/errors/authorization/authorization-errors.d.ts +0 -106
- package/dist/generic/src/errors/authorization/authorization-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/authorization/authorization-errors.js +0 -160
- package/dist/generic/src/errors/base-error.d.ts +0 -23
- package/dist/generic/src/errors/base-error.d.ts.map +0 -1
- package/dist/generic/src/errors/base-error.js +0 -34
- package/dist/generic/src/errors/database/database-errors.d.ts +0 -24
- package/dist/generic/src/errors/database/database-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/database/database-errors.js +0 -33
- package/dist/generic/src/errors/generic/generic-errors.d.ts +0 -35
- package/dist/generic/src/errors/generic/generic-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/generic/generic-errors.js +0 -47
- package/dist/generic/src/errors/index.d.ts +0 -10
- package/dist/generic/src/errors/index.d.ts.map +0 -1
- package/dist/generic/src/errors/index.js +0 -26
- package/dist/generic/src/errors/request/request-errors.d.ts +0 -98
- package/dist/generic/src/errors/request/request-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/request/request-errors.js +0 -134
- package/dist/generic/src/errors/safe/safe-rules-errors.d.ts +0 -102
- package/dist/generic/src/errors/safe/safe-rules-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/safe/safe-rules-errors.js +0 -152
- package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts +0 -8
- package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/scheduler/scheduler-errors.js +0 -14
- package/dist/generic/src/errors/share-data/share-data-errors.d.ts +0 -67
- package/dist/generic/src/errors/share-data/share-data-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/share-data/share-data-errors.js +0 -92
- package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts +0 -87
- package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts.map +0 -1
- package/dist/generic/src/models/application/audit-log/application-audit-log-models.js +0 -59
- package/dist/generic/src/models/application/database/firestore-models.d.ts +0 -84
- package/dist/generic/src/models/application/database/firestore-models.d.ts.map +0 -1
- package/dist/generic/src/models/application/database/firestore-models.js +0 -4
- package/dist/generic/src/models/authorization/authorization-models.d.ts +0 -81
- package/dist/generic/src/models/authorization/authorization-models.d.ts.map +0 -1
- package/dist/generic/src/models/authorization/authorization-models.js +0 -33
- package/dist/generic/src/models/crypto/crypto-models.d.ts +0 -5
- package/dist/generic/src/models/crypto/crypto-models.d.ts.map +0 -1
- package/dist/generic/src/models/crypto/crypto-models.js +0 -3
- package/dist/generic/src/models/data/data-models.d.ts +0 -24
- package/dist/generic/src/models/data/data-models.d.ts.map +0 -1
- package/dist/generic/src/models/data/data-models.js +0 -3
- package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts +0 -9
- package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts.map +0 -1
- package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.js +0 -2
- package/dist/generic/src/models/events/share-event-models.d.ts +0 -65
- package/dist/generic/src/models/events/share-event-models.d.ts.map +0 -1
- package/dist/generic/src/models/events/share-event-models.js +0 -70
- package/dist/generic/src/models/functions/share-data-function-models.d.ts +0 -86
- package/dist/generic/src/models/functions/share-data-function-models.d.ts.map +0 -1
- package/dist/generic/src/models/functions/share-data-function-models.js +0 -17
- package/dist/generic/src/models/generic/request-response-models.d.ts +0 -8
- package/dist/generic/src/models/generic/request-response-models.d.ts.map +0 -1
- package/dist/generic/src/models/generic/request-response-models.js +0 -2
- package/dist/generic/src/models/index.d.ts +0 -13
- package/dist/generic/src/models/index.d.ts.map +0 -1
- package/dist/generic/src/models/index.js +0 -29
- package/dist/generic/src/models/rules/share-rule-models.d.ts +0 -303
- package/dist/generic/src/models/rules/share-rule-models.d.ts.map +0 -1
- package/dist/generic/src/models/rules/share-rule-models.js +0 -93
- package/dist/generic/src/models/safe/safe-transaction-models.d.ts +0 -81
- package/dist/generic/src/models/safe/safe-transaction-models.d.ts.map +0 -1
- package/dist/generic/src/models/safe/safe-transaction-models.js +0 -26
- package/dist/generic/src/models/share-data/share-data.d.ts +0 -56
- package/dist/generic/src/models/share-data/share-data.d.ts.map +0 -1
- package/dist/generic/src/models/share-data/share-data.js +0 -20
- /package/dist/{endpoints/src/cors → cors}/authority/jwt/validate-jwt-authorities.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/endpoints/authorities/validate-authorities-transaction.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/endpoints/authorities/validate-authorities-transaction.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/endpoints/helpers/validate-request-body.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/endpoints/helpers/validate-request-body.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/all-error-handler.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/all-error-handler.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/bad-request-handler.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/bad-request-handler.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/unauthorized-handler.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/unauthorized-handler.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/index.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/index.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/authorities.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/events.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/events.routes.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/functions.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/functions.routes.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/rules.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/rules.routes.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/share-data.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/share-data.routes.js +0 -0
- /package/dist/{endpoints/src/examples → examples}/express-server/app.d.ts +0 -0
- /package/dist/{endpoints/src/examples → examples}/express-server/app.js +0 -0
- /package/dist/{endpoints/src/examples → examples}/express-server/server.d.ts +0 -0
- /package/dist/{endpoints/src/examples → examples}/express-server/server.js +0 -0
- /package/dist/{endpoints/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{endpoints/src/index.js → index.js} +0 -0
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file contains the models for the rules used in the share data.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ConditionTypeOf = exports.ConditionTypeSpecial = exports.ConditionTypeBoolean = exports.ConditionTypeStartsEndsWith = exports.ConditionTypeRange = exports.ConditionTypeSingle = exports.ConditionTypeQualifier = exports.LogicalOperator = void 0;
|
|
7
|
-
//#endregion RuleSet
|
|
8
|
-
//#region RuleGroup
|
|
9
|
-
/**
|
|
10
|
-
* This contains the logical operators for combining rules.
|
|
11
|
-
*/
|
|
12
|
-
var LogicalOperator;
|
|
13
|
-
(function (LogicalOperator) {
|
|
14
|
-
LogicalOperator["AND"] = "AND";
|
|
15
|
-
LogicalOperator["OR"] = "OR";
|
|
16
|
-
})(LogicalOperator || (exports.LogicalOperator = LogicalOperator = {}));
|
|
17
|
-
/**
|
|
18
|
-
* This contains the choices for the type of qualifier.
|
|
19
|
-
*/
|
|
20
|
-
var ConditionTypeQualifier;
|
|
21
|
-
(function (ConditionTypeQualifier) {
|
|
22
|
-
ConditionTypeQualifier["IS"] = "is";
|
|
23
|
-
ConditionTypeQualifier["IS_NOT"] = "is not";
|
|
24
|
-
})(ConditionTypeQualifier || (exports.ConditionTypeQualifier = ConditionTypeQualifier = {}));
|
|
25
|
-
/**
|
|
26
|
-
* This contains the choices for the type of condition.
|
|
27
|
-
*/
|
|
28
|
-
var ConditionTypeSingle;
|
|
29
|
-
(function (ConditionTypeSingle) {
|
|
30
|
-
ConditionTypeSingle["TYPEOF"] = "typeof";
|
|
31
|
-
ConditionTypeSingle["EQUAL"] = "equal";
|
|
32
|
-
ConditionTypeSingle["CONTAINS"] = "contains";
|
|
33
|
-
ConditionTypeSingle["NULL"] = "null";
|
|
34
|
-
ConditionTypeSingle["EMPTY"] = "empty";
|
|
35
|
-
ConditionTypeSingle["SHARE_RULE"] = "share-rule";
|
|
36
|
-
})(ConditionTypeSingle || (exports.ConditionTypeSingle = ConditionTypeSingle = {}));
|
|
37
|
-
/**
|
|
38
|
-
* This contains the choices for the range conditions.
|
|
39
|
-
*/
|
|
40
|
-
var ConditionTypeRange;
|
|
41
|
-
(function (ConditionTypeRange) {
|
|
42
|
-
ConditionTypeRange["GREATER_THAN"] = "greater than";
|
|
43
|
-
ConditionTypeRange["LESS_THAN"] = "less than";
|
|
44
|
-
ConditionTypeRange["GREATER_THAN_OR_EQUAL"] = "greater than or equal";
|
|
45
|
-
ConditionTypeRange["LESS_THAN_OR_EQUAL"] = "less than or equal";
|
|
46
|
-
})(ConditionTypeRange || (exports.ConditionTypeRange = ConditionTypeRange = {}));
|
|
47
|
-
/**
|
|
48
|
-
* This contains the choices for the starts with and ends with conditions.
|
|
49
|
-
*/
|
|
50
|
-
var ConditionTypeStartsEndsWith;
|
|
51
|
-
(function (ConditionTypeStartsEndsWith) {
|
|
52
|
-
ConditionTypeStartsEndsWith["STARTS_WITH"] = "starts with";
|
|
53
|
-
ConditionTypeStartsEndsWith["ENDS_WITH"] = "ends with";
|
|
54
|
-
})(ConditionTypeStartsEndsWith || (exports.ConditionTypeStartsEndsWith = ConditionTypeStartsEndsWith = {}));
|
|
55
|
-
/**
|
|
56
|
-
* This contains the choices for the boolean conditions.
|
|
57
|
-
*/
|
|
58
|
-
var ConditionTypeBoolean;
|
|
59
|
-
(function (ConditionTypeBoolean) {
|
|
60
|
-
ConditionTypeBoolean["TRUE"] = "true";
|
|
61
|
-
ConditionTypeBoolean["FALSE"] = "false";
|
|
62
|
-
})(ConditionTypeBoolean || (exports.ConditionTypeBoolean = ConditionTypeBoolean = {}));
|
|
63
|
-
/**
|
|
64
|
-
* This contains the choices for the special conditions.
|
|
65
|
-
*/
|
|
66
|
-
var ConditionTypeSpecial;
|
|
67
|
-
(function (ConditionTypeSpecial) {
|
|
68
|
-
ConditionTypeSpecial["PATTERN"] = "pattern";
|
|
69
|
-
})(ConditionTypeSpecial || (exports.ConditionTypeSpecial = ConditionTypeSpecial = {}));
|
|
70
|
-
/**
|
|
71
|
-
* These are the different choices for the types of data in a condition.
|
|
72
|
-
*/
|
|
73
|
-
var ConditionTypeOf;
|
|
74
|
-
(function (ConditionTypeOf) {
|
|
75
|
-
ConditionTypeOf["STRING"] = "string";
|
|
76
|
-
ConditionTypeOf["NUMBER"] = "number";
|
|
77
|
-
ConditionTypeOf["INTEGER"] = "integer";
|
|
78
|
-
ConditionTypeOf["BOOLEAN"] = "boolean";
|
|
79
|
-
ConditionTypeOf["OBJECT"] = "object";
|
|
80
|
-
ConditionTypeOf["ARRAY"] = "array";
|
|
81
|
-
ConditionTypeOf["NULL"] = "null";
|
|
82
|
-
ConditionTypeOf["UNDEFINED"] = "undefined";
|
|
83
|
-
ConditionTypeOf["FUNCTION"] = "function";
|
|
84
|
-
ConditionTypeOf["BIGINT"] = "bigint";
|
|
85
|
-
})(ConditionTypeOf || (exports.ConditionTypeOf = ConditionTypeOf = {}));
|
|
86
|
-
// /**
|
|
87
|
-
// * This is the interface for the combined rule condition.
|
|
88
|
-
// */
|
|
89
|
-
// export interface IConditionCombinedRules extends IConditionBase {
|
|
90
|
-
// conditionType: ConditionTypeCombinedRules; // the type of condition to evaluate
|
|
91
|
-
// conditionValue: IShareRuleGroup; // the value to evaluate the condition against
|
|
92
|
-
// }
|
|
93
|
-
//#endregion Conditions
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { AuthorityValidationType, IAuthorizationIssuer } from '../authorization/authorization-models';
|
|
2
|
-
/**
|
|
3
|
-
* This is the type of function that is being targetted in the transaction.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum SAFETransactionActionType {
|
|
6
|
-
ADD = "ADD",
|
|
7
|
-
REMOVE = "REMOVE",
|
|
8
|
-
UPDATE = "UPDATE"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* This is the transaction for sharing data in the SAFE Ecosystem.
|
|
12
|
-
*/
|
|
13
|
-
export declare enum SAFETransactionType {
|
|
14
|
-
AUTHORITY = "AUTHORITY",// the authority in the SAFE Ecosystem
|
|
15
|
-
SHAREDATA = "SHAREDATA",// the Share Data in the SAFE Ecosystem
|
|
16
|
-
FUNCTIONS = "FUNCTIONS",// the functions in the SAFE Ecosystem
|
|
17
|
-
RULES = "RULES",// the rules in the SAFE Ecosystem
|
|
18
|
-
EVENTS = "EVENTS",// the events in the SAFE Ecosystem
|
|
19
|
-
ENDPOINTS = "ENDPOINTS"
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* This contains the minimum information required for a SAFE transaction.
|
|
23
|
-
*
|
|
24
|
-
const sampleTransactionBase: ISAFETransactionBase = {
|
|
25
|
-
createdAt: Date.now(),
|
|
26
|
-
authority: '0xAuthorityPublicKey',
|
|
27
|
-
authoritySignature: '0xAuthoritySignature',
|
|
28
|
-
transaction: {
|
|
29
|
-
type: SAFETransactionType.AUTHORITY,
|
|
30
|
-
action: SAFETransactionActionType.CREATE,
|
|
31
|
-
},
|
|
32
|
-
version: 1,
|
|
33
|
-
};
|
|
34
|
-
*/
|
|
35
|
-
export interface ISAFETransactionBase {
|
|
36
|
-
createdAt: number;
|
|
37
|
-
authority: string;
|
|
38
|
-
authoritySignature: string;
|
|
39
|
-
transaction: {
|
|
40
|
-
type: SAFETransactionType;
|
|
41
|
-
action: SAFETransactionActionType;
|
|
42
|
-
};
|
|
43
|
-
version: number;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* This is the transaction targetting an authority in the SAFE Ecosystem.
|
|
47
|
-
*
|
|
48
|
-
const sampleTransactionAuthority: ISAFETransactionAuthority = {
|
|
49
|
-
createdAt: Date.now(),
|
|
50
|
-
authority: '0xAuthorityPublicKey',
|
|
51
|
-
authoritySignature: '0xAuthoritySignature',
|
|
52
|
-
transaction: {
|
|
53
|
-
type: SAFETransactionType.AUTHORITY,
|
|
54
|
-
action: SAFETransactionActionType.CREATE,
|
|
55
|
-
data: {
|
|
56
|
-
authorizationIssuer: 'exampleIssuer-12345678' as IAuthorizationIssuer,
|
|
57
|
-
authorizationPublicKey: '0xAuthorizationPublicKey',
|
|
58
|
-
authorityValidationType: AuthorityValidationType.JWT,
|
|
59
|
-
authorityOver: [SAFETransactionType.SHAREDATA, SAFETransactionType.FUNCTIONS],
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
version: 1,
|
|
63
|
-
};
|
|
64
|
-
*/
|
|
65
|
-
export interface ISAFETransactionAuthority extends ISAFETransactionBase {
|
|
66
|
-
transaction: {
|
|
67
|
-
type: SAFETransactionType.AUTHORITY;
|
|
68
|
-
action: SAFETransactionActionType;
|
|
69
|
-
data: ISAFETransactionAuthorityData;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* This is the data for the authority in the SAFE Ecosystem.
|
|
74
|
-
*/
|
|
75
|
-
export interface ISAFETransactionAuthorityData {
|
|
76
|
-
authorizationIssuer: IAuthorizationIssuer;
|
|
77
|
-
authorizationPublicKey: string;
|
|
78
|
-
authorityValidationType: AuthorityValidationType;
|
|
79
|
-
authorityOver: SAFETransactionType[];
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=safe-transaction-models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"safe-transaction-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/safe/safe-transaction-models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAItG;;GAEG;AACH,oBAAY,yBAAyB;IACjC,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC3B,SAAS,cAAc,CAAE,sCAAsC;IAC/D,SAAS,cAAc,CAAE,uCAAuC;IAChE,SAAS,cAAc,CAAE,sCAAsC;IAC/D,KAAK,UAAU,CAAE,kCAAkC;IACnD,MAAM,WAAW,CAAE,mCAAmC;IACtD,SAAS,cAAc;CAC1B;AAID;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE;QACT,IAAI,EAAE,mBAAmB,CAAC;QAC1B,MAAM,EAAE,yBAAyB,CAAC;KACrC,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACnE,WAAW,EAAE;QACT,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC;QACpC,MAAM,EAAE,yBAAyB,CAAC;QAClC,IAAI,EAAE,6BAA6B,CAAC;KACvC,CAAA;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,mBAAmB,EAAE,oBAAoB,CAAC;IAC1C,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,aAAa,EAAE,mBAAmB,EAAE,CAAC;CACxC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/// This file is used to keep all safe transactions for the SAFE system.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.SAFETransactionType = exports.SAFETransactionActionType = void 0;
|
|
5
|
-
//#region Enums
|
|
6
|
-
/**
|
|
7
|
-
* This is the type of function that is being targetted in the transaction.
|
|
8
|
-
*/
|
|
9
|
-
var SAFETransactionActionType;
|
|
10
|
-
(function (SAFETransactionActionType) {
|
|
11
|
-
SAFETransactionActionType["ADD"] = "ADD";
|
|
12
|
-
SAFETransactionActionType["REMOVE"] = "REMOVE";
|
|
13
|
-
SAFETransactionActionType["UPDATE"] = "UPDATE";
|
|
14
|
-
})(SAFETransactionActionType || (exports.SAFETransactionActionType = SAFETransactionActionType = {}));
|
|
15
|
-
/**
|
|
16
|
-
* This is the transaction for sharing data in the SAFE Ecosystem.
|
|
17
|
-
*/
|
|
18
|
-
var SAFETransactionType;
|
|
19
|
-
(function (SAFETransactionType) {
|
|
20
|
-
SAFETransactionType["AUTHORITY"] = "AUTHORITY";
|
|
21
|
-
SAFETransactionType["SHAREDATA"] = "SHAREDATA";
|
|
22
|
-
SAFETransactionType["FUNCTIONS"] = "FUNCTIONS";
|
|
23
|
-
SAFETransactionType["RULES"] = "RULES";
|
|
24
|
-
SAFETransactionType["EVENTS"] = "EVENTS";
|
|
25
|
-
SAFETransactionType["ENDPOINTS"] = "ENDPOINTS";
|
|
26
|
-
})(SAFETransactionType || (exports.SAFETransactionType = SAFETransactionType = {}));
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This contains the data for the share data object
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ShareDataTypes {
|
|
5
|
-
AUTHORIZATION = "AUTHORIZATION",
|
|
6
|
-
RULE = "RULE",
|
|
7
|
-
FUNCTION = "FUNCTION",
|
|
8
|
-
TRANSACTION_HISTORY = "TRANSACTION_HISTORY",
|
|
9
|
-
DATA = "DATA"
|
|
10
|
-
}
|
|
11
|
-
export interface IShareData {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* This contains the interface for a share function record in the share data object
|
|
16
|
-
*/
|
|
17
|
-
export interface IShareFunctionRecord {
|
|
18
|
-
id: string;
|
|
19
|
-
groupingId: string;
|
|
20
|
-
groupingName: string;
|
|
21
|
-
name: string;
|
|
22
|
-
description: string;
|
|
23
|
-
hash: string;
|
|
24
|
-
stringifiedFunction: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* This contains the interface for a share function in the share data object
|
|
28
|
-
*/
|
|
29
|
-
export interface IShareFunction<TInput, TFunction extends (...args: any[]) => any, TOutput> {
|
|
30
|
-
input: TInput;
|
|
31
|
-
func: TFunction;
|
|
32
|
-
output: TOutput;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* This contains the interface for the share transaction history in the share data object
|
|
36
|
-
*/
|
|
37
|
-
export interface IShareTransactionBase {
|
|
38
|
-
ruleOutcome: boolean;
|
|
39
|
-
ruleFailures: IRuleFailures[];
|
|
40
|
-
transactionFunction: IShareFunction<any, (...args: any[]) => any, any>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* This contains the interface for the share transaction history in the share data object
|
|
44
|
-
* This is done for storage
|
|
45
|
-
*/
|
|
46
|
-
export interface IShareTransactionHistory extends IShareTransactionBase {
|
|
47
|
-
transactionId: string;
|
|
48
|
-
transactionTime: number;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* This contains the interface for the rule success in the share data object
|
|
52
|
-
*/
|
|
53
|
-
export interface IRuleFailures {
|
|
54
|
-
ruleId: string;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=share-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"share-data.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/share-data/share-data.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,oBAAY,cAAc;IACtB,aAAa,kBAAkB;IAC/B,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,mBAAmB,wBAAwB;IAC3C,IAAI,SAAS;CAChB;AAGD,MAAM,WAAW,UAAU;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,MAAM,EAAE,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO;IACtF,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B,mBAAmB,EAAE,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,GAAG,CAAC,CAAC;CAC1E;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACnE,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShareDataTypes = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* This contains the data for the share data object
|
|
6
|
-
*/
|
|
7
|
-
var ShareDataTypes;
|
|
8
|
-
(function (ShareDataTypes) {
|
|
9
|
-
ShareDataTypes["AUTHORIZATION"] = "AUTHORIZATION";
|
|
10
|
-
ShareDataTypes["RULE"] = "RULE";
|
|
11
|
-
ShareDataTypes["FUNCTION"] = "FUNCTION";
|
|
12
|
-
ShareDataTypes["TRANSACTION_HISTORY"] = "TRANSACTION_HISTORY";
|
|
13
|
-
ShareDataTypes["DATA"] = "DATA";
|
|
14
|
-
})(ShareDataTypes || (exports.ShareDataTypes = ShareDataTypes = {}));
|
|
15
|
-
// export interface IShareData {
|
|
16
|
-
// rules: IShareRule[]; // the rules for the share data
|
|
17
|
-
// functions: IShareFunction[]; // the functions for the share data
|
|
18
|
-
// transactionHistory: IShareTransactionHistory[]; // The transaction history for the share data
|
|
19
|
-
// data
|
|
20
|
-
// }
|
|
File without changes
|
|
File without changes
|
/package/dist/{endpoints/src/cors → cors}/endpoints/authorities/validate-authorities-transaction.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|