@cloud-copilot/iam-data 0.0.202408253 → 0.1.202408251

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/README.md CHANGED
@@ -43,3 +43,8 @@ for(const serviceKey of allServiceKeys()) {
43
43
  * `allConditionKeys(serviceKey: string)` - Returns an array of all condition keys for a given service key.
44
44
  * `getConditionKeyDetails(serviceKey: string, conditionKey: string)` - Returns an object with the condition key details such as `description`, `conditionValueTypes`, and `conditionOperators`.
45
45
  * `conditionKeyExists(serviceKey: string, conditionKey: string)` - Returns true if the condition key exists.
46
+
47
+ ### Version Info
48
+ The version is numper is formatted as `major.minor.updatedAt`. The updatedAt is the date the data was last updated in the format `YYYYMMDDX` where `X` is a counter to enable deploying more than once per day if necessary. For example version `0.1.202408291` has data updated on August 29th, 2024.
49
+
50
+ The version can be accessed using the `getVersion()` method.
@@ -2,4 +2,5 @@ export * from './actions';
2
2
  export * from './conditionKeys';
3
3
  export * from './resourceTypes';
4
4
  export * from './services';
5
+ export * from './version';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -18,4 +18,5 @@ __exportStar(require("./actions"), exports);
18
18
  __exportStar(require("./conditionKeys"), exports);
19
19
  __exportStar(require("./resourceTypes"), exports);
20
20
  __exportStar(require("./services"), exports);
21
+ __exportStar(require("./version"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,6CAA2B;AAC3B,4CAA0B"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Get the version of the package
3
+ */
4
+ export declare function getVersion(): string;
5
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAanC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getVersion = getVersion;
4
+ const fs_1 = require("fs");
5
+ const path_1 = require("path");
6
+ let versionCache = undefined;
7
+ /**
8
+ * Get the version of the package
9
+ */
10
+ function getVersion() {
11
+ if (!versionCache) {
12
+ let fileRoot = (0, path_1.join)(__dirname, '..', '..');
13
+ if (__dirname.endsWith('src')) {
14
+ fileRoot = (0, path_1.join)(__dirname, '..');
15
+ }
16
+ const data = (0, fs_1.readFileSync)((0, path_1.join)(fileRoot, 'package.json'), 'utf8');
17
+ const packageInfo = JSON.parse(data);
18
+ versionCache = packageInfo.version;
19
+ }
20
+ return versionCache;
21
+ }
22
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;AASA,gCAaC;AAtBD,2BAAkC;AAClC,+BAA4B;AAG5B,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD;;GAEG;AACH,SAAgB,UAAU;IACxB,IAAG,CAAC,YAAY,EAAE,CAAC;QACjB,IAAI,QAAQ,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC3C,IAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,QAAQ,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACnC,CAAC;QAED,MAAM,IAAI,GAAG,IAAA,iBAAY,EAAC,IAAA,WAAI,EAAC,QAAQ,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAAC;QAClE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrC,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,OAAO,YAAa,CAAA;AACtB,CAAC"}
@@ -2,4 +2,5 @@ export * from './actions';
2
2
  export * from './conditionKeys';
3
3
  export * from './resourceTypes';
4
4
  export * from './services';
5
+ export * from './version';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
package/dist/esm/index.js CHANGED
@@ -2,4 +2,5 @@ export * from './actions';
2
2
  export * from './conditionKeys';
3
3
  export * from './resourceTypes';
4
4
  export * from './services';
5
+ export * from './version';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Get the version of the package
3
+ */
4
+ export declare function getVersion(): string;
5
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAanC"}
@@ -0,0 +1,19 @@
1
+ import { readFileSync } from "fs";
2
+ import { join } from "path";
3
+ let versionCache = undefined;
4
+ /**
5
+ * Get the version of the package
6
+ */
7
+ export function getVersion() {
8
+ if (!versionCache) {
9
+ let fileRoot = join(__dirname, '..', '..');
10
+ if (__dirname.endsWith('src')) {
11
+ fileRoot = join(__dirname, '..');
12
+ }
13
+ const data = readFileSync(join(fileRoot, 'package.json'), 'utf8');
14
+ const packageInfo = JSON.parse(data);
15
+ versionCache = packageInfo.version;
16
+ }
17
+ return versionCache;
18
+ }
19
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,IAAG,CAAC,YAAY,EAAE,CAAC;QACjB,IAAI,QAAQ,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC3C,IAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,QAAQ,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACnC,CAAC;QAED,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAAC;QAClE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrC,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,OAAO,YAAa,CAAA;AACtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-copilot/iam-data",
3
- "version": "0.0.202408253",
3
+ "version": "0.1.202408251",
4
4
  "description": "AWS IAM Data",
5
5
  "repository": "github:cloud-copilot/iam-data",
6
6
  "exports": {