@uptime.app/contracts 3.0.49 → 3.0.50-UPM-9401.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.
@@ -8,9 +8,32 @@ export interface B2BOrganisationGroup {
8
8
  organisationId: string;
9
9
  owner: string;
10
10
  description?: string;
11
+ criteria?: DynamicGroupRule;
11
12
  }
12
13
  export declare enum B2BOrganisationGroupType {
13
14
  STATIC = "STATIC",
14
15
  DYNAMIC = "DYNAMIC"
15
16
  }
17
+ export type DynamicGroupRule = DynamicGroupCondition | DynamicGroupLogic;
18
+ export interface DynamicGroupLogic {
19
+ operator: 'AND' | 'OR';
20
+ rules: DynamicGroupRule[];
21
+ }
22
+ export interface DynamicGroupCondition {
23
+ key: string;
24
+ operator: DynamicGroupOperator;
25
+ value: string | number;
26
+ }
27
+ export declare enum DynamicGroupOperator {
28
+ EQUALS = "EQUALS",
29
+ NOT_EQUALS = "NOT_EQUALS",
30
+ CONTAINS = "CONTAINS",
31
+ GREATER_THAN = "GREATER_THAN",
32
+ LESS_THAN = "LESS_THAN"
33
+ }
34
+ export interface DynamicGroupField {
35
+ key: string;
36
+ type: 'string' | 'date';
37
+ }
38
+ export declare const SUPPORTED_DYNAMIC_GROUP_FIELDS: DynamicGroupField[];
16
39
  //# sourceMappingURL=b2b-organisation-group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"b2b-organisation-group.d.ts","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation-group.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CAExB;AAED,oBAAY,wBAAwB;IAChC,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB"}
1
+ {"version":3,"file":"b2b-organisation-group.d.ts","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation-group.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,oBAAY,wBAAwB;IAChC,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB;AAED,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,GAAG,iBAAiB,CAAC;AAEzE,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,oBAAY,oBAAoB;IAC5B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,8BAA8B,EAAE,iBAAiB,EAqB7D,CAAC"}
@@ -1,9 +1,39 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.B2BOrganisationGroupType = void 0;
3
+ exports.SUPPORTED_DYNAMIC_GROUP_FIELDS = exports.DynamicGroupOperator = exports.B2BOrganisationGroupType = void 0;
4
4
  var B2BOrganisationGroupType;
5
5
  (function (B2BOrganisationGroupType) {
6
6
  B2BOrganisationGroupType["STATIC"] = "STATIC";
7
7
  B2BOrganisationGroupType["DYNAMIC"] = "DYNAMIC";
8
8
  })(B2BOrganisationGroupType || (exports.B2BOrganisationGroupType = B2BOrganisationGroupType = {}));
9
+ var DynamicGroupOperator;
10
+ (function (DynamicGroupOperator) {
11
+ DynamicGroupOperator["EQUALS"] = "EQUALS";
12
+ DynamicGroupOperator["NOT_EQUALS"] = "NOT_EQUALS";
13
+ DynamicGroupOperator["CONTAINS"] = "CONTAINS";
14
+ DynamicGroupOperator["GREATER_THAN"] = "GREATER_THAN";
15
+ DynamicGroupOperator["LESS_THAN"] = "LESS_THAN";
16
+ })(DynamicGroupOperator || (exports.DynamicGroupOperator = DynamicGroupOperator = {}));
17
+ exports.SUPPORTED_DYNAMIC_GROUP_FIELDS = [
18
+ {
19
+ key: 'user.emailDomain',
20
+ type: 'string',
21
+ },
22
+ {
23
+ key: 'user.createdAt',
24
+ type: 'date',
25
+ },
26
+ {
27
+ key: 'idp.department',
28
+ type: 'string',
29
+ },
30
+ {
31
+ key: 'idp.jobTitle',
32
+ type: 'string',
33
+ },
34
+ {
35
+ key: 'idp.countryCode',
36
+ type: 'string',
37
+ },
38
+ ];
9
39
  //# sourceMappingURL=b2b-organisation-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"b2b-organisation-group.js","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation-group.ts"],"names":[],"mappings":";;;AAaA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,6CAAiB,CAAA;IACjB,+CAAmB,CAAA;AACvB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC"}
1
+ {"version":3,"file":"b2b-organisation-group.js","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation-group.ts"],"names":[],"mappings":";;;AAaA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,6CAAiB,CAAA;IACjB,+CAAmB,CAAA;AACvB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAeD,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,iDAAyB,CAAA;IACzB,6CAAqB,CAAA;IACrB,qDAA6B,CAAA;IAC7B,+CAAuB,CAAA;AAC3B,CAAC,EANW,oBAAoB,oCAApB,oBAAoB,QAM/B;AAOY,QAAA,8BAA8B,GAAwB;IAC/D;QACI,GAAG,EAAE,kBAAkB;QACvB,IAAI,EAAE,QAAQ;KACjB;IACD;QACI,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,MAAM;KACf;IACD;QACI,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,QAAQ;KACjB;IACD;QACI,GAAG,EAAE,cAAc;QACnB,IAAI,EAAE,QAAQ;KACjB;IACD;QACI,GAAG,EAAE,iBAAiB;QACtB,IAAI,EAAE,QAAQ;KACjB;CACJ,CAAC"}
@@ -8,9 +8,32 @@ export interface B2BOrganisationGroup {
8
8
  organisationId: string;
9
9
  owner: string;
10
10
  description?: string;
11
+ criteria?: DynamicGroupRule;
11
12
  }
12
13
  export declare enum B2BOrganisationGroupType {
13
14
  STATIC = "STATIC",
14
15
  DYNAMIC = "DYNAMIC"
15
16
  }
17
+ export type DynamicGroupRule = DynamicGroupCondition | DynamicGroupLogic;
18
+ export interface DynamicGroupLogic {
19
+ operator: 'AND' | 'OR';
20
+ rules: DynamicGroupRule[];
21
+ }
22
+ export interface DynamicGroupCondition {
23
+ key: string;
24
+ operator: DynamicGroupOperator;
25
+ value: string | number;
26
+ }
27
+ export declare enum DynamicGroupOperator {
28
+ EQUALS = "EQUALS",
29
+ NOT_EQUALS = "NOT_EQUALS",
30
+ CONTAINS = "CONTAINS",
31
+ GREATER_THAN = "GREATER_THAN",
32
+ LESS_THAN = "LESS_THAN"
33
+ }
34
+ export interface DynamicGroupField {
35
+ key: string;
36
+ type: 'string' | 'date';
37
+ }
38
+ export declare const SUPPORTED_DYNAMIC_GROUP_FIELDS: DynamicGroupField[];
16
39
  //# sourceMappingURL=b2b-organisation-group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"b2b-organisation-group.d.ts","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation-group.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CAExB;AAED,oBAAY,wBAAwB;IAChC,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB"}
1
+ {"version":3,"file":"b2b-organisation-group.d.ts","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation-group.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,oBAAY,wBAAwB;IAChC,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB;AAED,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,GAAG,iBAAiB,CAAC;AAEzE,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,oBAAY,oBAAoB;IAC5B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,8BAA8B,EAAE,iBAAiB,EAqB7D,CAAC"}
@@ -3,4 +3,34 @@ export var B2BOrganisationGroupType;
3
3
  B2BOrganisationGroupType["STATIC"] = "STATIC";
4
4
  B2BOrganisationGroupType["DYNAMIC"] = "DYNAMIC";
5
5
  })(B2BOrganisationGroupType || (B2BOrganisationGroupType = {}));
6
+ export var DynamicGroupOperator;
7
+ (function (DynamicGroupOperator) {
8
+ DynamicGroupOperator["EQUALS"] = "EQUALS";
9
+ DynamicGroupOperator["NOT_EQUALS"] = "NOT_EQUALS";
10
+ DynamicGroupOperator["CONTAINS"] = "CONTAINS";
11
+ DynamicGroupOperator["GREATER_THAN"] = "GREATER_THAN";
12
+ DynamicGroupOperator["LESS_THAN"] = "LESS_THAN";
13
+ })(DynamicGroupOperator || (DynamicGroupOperator = {}));
14
+ export const SUPPORTED_DYNAMIC_GROUP_FIELDS = [
15
+ {
16
+ key: 'user.emailDomain',
17
+ type: 'string',
18
+ },
19
+ {
20
+ key: 'user.createdAt',
21
+ type: 'date',
22
+ },
23
+ {
24
+ key: 'idp.department',
25
+ type: 'string',
26
+ },
27
+ {
28
+ key: 'idp.jobTitle',
29
+ type: 'string',
30
+ },
31
+ {
32
+ key: 'idp.countryCode',
33
+ type: 'string',
34
+ },
35
+ ];
6
36
  //# sourceMappingURL=b2b-organisation-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"b2b-organisation-group.js","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation-group.ts"],"names":[],"mappings":"AAaA,MAAM,CAAN,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,6CAAiB,CAAA;IACjB,+CAAmB,CAAA;AACvB,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,QAGnC"}
1
+ {"version":3,"file":"b2b-organisation-group.js","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation-group.ts"],"names":[],"mappings":"AAaA,MAAM,CAAN,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,6CAAiB,CAAA;IACjB,+CAAmB,CAAA;AACvB,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,QAGnC;AAeD,MAAM,CAAN,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,iDAAyB,CAAA;IACzB,6CAAqB,CAAA;IACrB,qDAA6B,CAAA;IAC7B,+CAAuB,CAAA;AAC3B,CAAC,EANW,oBAAoB,KAApB,oBAAoB,QAM/B;AAOD,MAAM,CAAC,MAAM,8BAA8B,GAAwB;IAC/D;QACI,GAAG,EAAE,kBAAkB;QACvB,IAAI,EAAE,QAAQ;KACjB;IACD;QACI,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,MAAM;KACf;IACD;QACI,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,QAAQ;KACjB;IACD;QACI,GAAG,EAAE,cAAc;QACnB,IAAI,EAAE,QAAQ;KACjB;IACD;QACI,GAAG,EAAE,iBAAiB;QACtB,IAAI,EAAE,QAAQ;KACjB;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uptime.app/contracts",
3
- "version": "3.0.49",
3
+ "version": "3.0.50-UPM-9401.0",
4
4
  "license": "MIT",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "main": "./dist/cjs/index.js",
@@ -14,5 +14,5 @@
14
14
  "devDependencies": {
15
15
  "typescript": "^5.4.3"
16
16
  },
17
- "gitHead": "d352d445c9a0542a47f186457f64ff5f45fd8ce4"
17
+ "gitHead": "e1edca727e5ff41dd913cc692aef8ae42a88bad5"
18
18
  }
@@ -8,10 +8,59 @@ export interface B2BOrganisationGroup {
8
8
  organisationId: string;
9
9
  owner: string;
10
10
  description?: string;
11
- //TBC criteria?:
11
+ criteria?: DynamicGroupRule;
12
12
  }
13
13
 
14
14
  export enum B2BOrganisationGroupType {
15
15
  STATIC = 'STATIC',
16
16
  DYNAMIC = 'DYNAMIC'
17
- }
17
+ }
18
+
19
+ export type DynamicGroupRule = DynamicGroupCondition | DynamicGroupLogic;
20
+
21
+ export interface DynamicGroupLogic {
22
+ operator: 'AND' | 'OR';
23
+ rules: DynamicGroupRule[];
24
+ }
25
+
26
+ export interface DynamicGroupCondition {
27
+ key: string;
28
+ operator: DynamicGroupOperator;
29
+ value: string | number;
30
+ }
31
+
32
+ export enum DynamicGroupOperator {
33
+ EQUALS = 'EQUALS',
34
+ NOT_EQUALS = 'NOT_EQUALS',
35
+ CONTAINS = 'CONTAINS',
36
+ GREATER_THAN = 'GREATER_THAN',
37
+ LESS_THAN = 'LESS_THAN',
38
+ }
39
+
40
+ export interface DynamicGroupField {
41
+ key: string;
42
+ type: 'string' | 'date';
43
+ }
44
+
45
+ export const SUPPORTED_DYNAMIC_GROUP_FIELDS: DynamicGroupField[] = [
46
+ {
47
+ key: 'user.emailDomain',
48
+ type: 'string',
49
+ },
50
+ {
51
+ key: 'user.createdAt',
52
+ type: 'date',
53
+ },
54
+ {
55
+ key: 'idp.department',
56
+ type: 'string',
57
+ },
58
+ {
59
+ key: 'idp.jobTitle',
60
+ type: 'string',
61
+ },
62
+ {
63
+ key: 'idp.countryCode',
64
+ type: 'string',
65
+ },
66
+ ];