declastruct-github 1.1.1 → 1.2.1
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/access/daos/DeclaredGithubAppDao.js.map +1 -1
- package/dist/access/daos/DeclaredGithubAppInstallationDao.js.map +1 -1
- package/dist/access/daos/DeclaredGithubBranchDao.js.map +1 -1
- package/dist/access/daos/DeclaredGithubBranchProtectionDao.js.map +1 -1
- package/dist/access/daos/DeclaredGithubOrgDao.d.ts +10 -0
- package/dist/access/daos/DeclaredGithubOrgDao.js +44 -0
- package/dist/access/daos/DeclaredGithubOrgDao.js.map +1 -0
- package/dist/access/daos/DeclaredGithubOrgMemberPrivilegesDao.d.ts +10 -0
- package/dist/access/daos/DeclaredGithubOrgMemberPrivilegesDao.js +44 -0
- package/dist/access/daos/DeclaredGithubOrgMemberPrivilegesDao.js.map +1 -0
- package/dist/access/daos/DeclaredGithubOrgSecretDao.d.ts +10 -0
- package/dist/access/daos/DeclaredGithubOrgSecretDao.js +47 -0
- package/dist/access/daos/DeclaredGithubOrgSecretDao.js.map +1 -0
- package/dist/access/daos/DeclaredGithubOrgVariableDao.d.ts +9 -0
- package/dist/access/daos/DeclaredGithubOrgVariableDao.js +46 -0
- package/dist/access/daos/DeclaredGithubOrgVariableDao.js.map +1 -0
- package/dist/access/daos/DeclaredGithubRepoConfigDao.js.map +1 -1
- package/dist/access/daos/DeclaredGithubRepoDao.js.map +1 -1
- package/dist/contract/sdks/index.d.ts +4 -0
- package/dist/contract/sdks/index.js +10 -1
- package/dist/contract/sdks/index.js.map +1 -1
- package/dist/domain.objects/DeclaredGithubApp.js.map +1 -1
- package/dist/domain.objects/DeclaredGithubAppPermissions.d.ts +6 -2
- package/dist/domain.objects/DeclaredGithubAppPermissions.js.map +1 -1
- package/dist/domain.objects/DeclaredGithubOrg.d.ts +59 -0
- package/dist/domain.objects/DeclaredGithubOrg.js +15 -0
- package/dist/domain.objects/DeclaredGithubOrg.js.map +1 -0
- package/dist/domain.objects/DeclaredGithubOrgMemberPrivileges.d.ts +85 -0
- package/dist/domain.objects/DeclaredGithubOrgMemberPrivileges.js +13 -0
- package/dist/domain.objects/DeclaredGithubOrgMemberPrivileges.js.map +1 -0
- package/dist/domain.objects/DeclaredGithubOrgSecret.d.ts +63 -0
- package/dist/domain.objects/DeclaredGithubOrgSecret.js +14 -0
- package/dist/domain.objects/DeclaredGithubOrgSecret.js.map +1 -0
- package/dist/domain.objects/DeclaredGithubOrgVariable.d.ts +54 -0
- package/dist/domain.objects/DeclaredGithubOrgVariable.js +13 -0
- package/dist/domain.objects/DeclaredGithubOrgVariable.js.map +1 -0
- package/dist/domain.objects/DeclaredGithubRepo.d.ts +1 -0
- package/dist/domain.objects/DeclaredGithubRepo.js +1 -0
- package/dist/domain.objects/DeclaredGithubRepo.js.map +1 -1
- package/dist/domain.objects/DeclastructGithubProvider.d.ts +8 -0
- package/dist/domain.operations/app/castToDeclaredGithubApp.js +2 -1
- package/dist/domain.operations/app/castToDeclaredGithubApp.js.map +1 -1
- package/dist/domain.operations/app/getOneApp.js +2 -2
- package/dist/domain.operations/app/getOneApp.js.map +1 -1
- package/dist/domain.operations/app/setApp.js.map +1 -1
- package/dist/domain.operations/appInstallation/castToDeclaredGithubAppInstallation.js.map +1 -1
- package/dist/domain.operations/appInstallation/getOneAppInstallation.js +2 -2
- package/dist/domain.operations/appInstallation/getOneAppInstallation.js.map +1 -1
- package/dist/domain.operations/appInstallation/setAppInstallation.js.map +1 -1
- package/dist/domain.operations/branch/castToDeclaredGithubBranch.js.map +1 -1
- package/dist/domain.operations/branch/getBranch.js.map +1 -1
- package/dist/domain.operations/branch/getBranchCommitShaByRepoDefault.js.map +1 -1
- package/dist/domain.operations/branch/getBranches.js.map +1 -1
- package/dist/domain.operations/branch/setBranch.js.map +1 -1
- package/dist/domain.operations/branchProtection/castToDeclaredGithubBranchProtection.js.map +1 -1
- package/dist/domain.operations/branchProtection/getBranchProtection.js.map +1 -1
- package/dist/domain.operations/branchProtection/setBranchProtection.js.map +1 -1
- package/dist/domain.operations/org/castToDeclaredGithubOrg.d.ts +12 -0
- package/dist/domain.operations/org/castToDeclaredGithubOrg.js +29 -0
- package/dist/domain.operations/org/castToDeclaredGithubOrg.js.map +1 -0
- package/dist/domain.operations/org/getOneOrg.d.ts +14 -0
- package/dist/domain.operations/org/getOneOrg.js +31 -0
- package/dist/domain.operations/org/getOneOrg.js.map +1 -0
- package/dist/domain.operations/org/setOrg.d.ts +17 -0
- package/dist/domain.operations/org/setOrg.js +50 -0
- package/dist/domain.operations/org/setOrg.js.map +1 -0
- package/dist/domain.operations/orgMemberPrivileges/castToDeclaredGithubOrgMemberPrivileges.d.ts +15 -0
- package/dist/domain.operations/orgMemberPrivileges/castToDeclaredGithubOrgMemberPrivileges.js +47 -0
- package/dist/domain.operations/orgMemberPrivileges/castToDeclaredGithubOrgMemberPrivileges.js.map +1 -0
- package/dist/domain.operations/orgMemberPrivileges/getOneOrgMemberPrivileges.d.ts +14 -0
- package/dist/domain.operations/orgMemberPrivileges/getOneOrgMemberPrivileges.js +36 -0
- package/dist/domain.operations/orgMemberPrivileges/getOneOrgMemberPrivileges.js.map +1 -0
- package/dist/domain.operations/orgMemberPrivileges/setOrgMemberPrivileges.d.ts +16 -0
- package/dist/domain.operations/orgMemberPrivileges/setOrgMemberPrivileges.js +64 -0
- package/dist/domain.operations/orgMemberPrivileges/setOrgMemberPrivileges.js.map +1 -0
- package/dist/domain.operations/orgSecret/castToDeclaredGithubOrgSecret.d.ts +17 -0
- package/dist/domain.operations/orgSecret/castToDeclaredGithubOrgSecret.js +28 -0
- package/dist/domain.operations/orgSecret/castToDeclaredGithubOrgSecret.js.map +1 -0
- package/dist/domain.operations/orgSecret/delOrgSecret.d.ts +11 -0
- package/dist/domain.operations/orgSecret/delOrgSecret.js +27 -0
- package/dist/domain.operations/orgSecret/delOrgSecret.js.map +1 -0
- package/dist/domain.operations/orgSecret/getAllOrgSecrets.d.ts +14 -0
- package/dist/domain.operations/orgSecret/getAllOrgSecrets.js +27 -0
- package/dist/domain.operations/orgSecret/getAllOrgSecrets.js.map +1 -0
- package/dist/domain.operations/orgSecret/getOneOrgSecret.d.ts +15 -0
- package/dist/domain.operations/orgSecret/getOneOrgSecret.js +35 -0
- package/dist/domain.operations/orgSecret/getOneOrgSecret.js.map +1 -0
- package/dist/domain.operations/orgSecret/setOrgSecret.d.ts +17 -0
- package/dist/domain.operations/orgSecret/setOrgSecret.js +123 -0
- package/dist/domain.operations/orgSecret/setOrgSecret.js.map +1 -0
- package/dist/domain.operations/orgVariable/castToDeclaredGithubOrgVariable.d.ts +16 -0
- package/dist/domain.operations/orgVariable/castToDeclaredGithubOrgVariable.js +26 -0
- package/dist/domain.operations/orgVariable/castToDeclaredGithubOrgVariable.js.map +1 -0
- package/dist/domain.operations/orgVariable/delOrgVariable.d.ts +11 -0
- package/dist/domain.operations/orgVariable/delOrgVariable.js +27 -0
- package/dist/domain.operations/orgVariable/delOrgVariable.js.map +1 -0
- package/dist/domain.operations/orgVariable/getAllOrgVariables.d.ts +13 -0
- package/dist/domain.operations/orgVariable/getAllOrgVariables.js +28 -0
- package/dist/domain.operations/orgVariable/getAllOrgVariables.js.map +1 -0
- package/dist/domain.operations/orgVariable/getOneOrgVariable.d.ts +14 -0
- package/dist/domain.operations/orgVariable/getOneOrgVariable.js +34 -0
- package/dist/domain.operations/orgVariable/getOneOrgVariable.js.map +1 -0
- package/dist/domain.operations/orgVariable/setOrgVariable.d.ts +12 -0
- package/dist/domain.operations/orgVariable/setOrgVariable.js +69 -0
- package/dist/domain.operations/orgVariable/setOrgVariable.js.map +1 -0
- package/dist/domain.operations/provider/getDeclastructGithubProvider.js +9 -0
- package/dist/domain.operations/provider/getDeclastructGithubProvider.js.map +1 -1
- package/dist/domain.operations/repo/castToDeclaredGithubRepo.js.map +1 -1
- package/dist/domain.operations/repo/getRepo.js.map +1 -1
- package/dist/domain.operations/repo/getRepos.js +2 -2
- package/dist/domain.operations/repo/getRepos.js.map +1 -1
- package/dist/domain.operations/repo/setRepo.js.map +1 -1
- package/dist/domain.operations/repoConfig/castToDeclaredGithubRepoConfig.js.map +1 -1
- package/dist/domain.operations/repoConfig/getRepoConfig.js.map +1 -1
- package/dist/domain.operations/repoConfig/setRepoConfig.js.map +1 -1
- package/package.json +16 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeclaredGithubAppDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubAppDao.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAIhD,
|
|
1
|
+
{"version":3,"file":"DeclaredGithubAppDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubAppDao.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAIhD,6EAA0E;AAC1E,oEAAiE;AACjE,8DAA2D;AAE3D;;;GAGG;AACU,QAAA,oBAAoB,GAAG,IAAA,+BAAiB,EAGnD;IACA,IAAI,EAAE,qCAAiB;IACvB,GAAG,EAAE;QACH,GAAG,EAAE;YACH,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBACjC,OAAO,IAAA,qBAAS,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;YACvD,CAAC;YACD,SAAS,EAAE,IAAI;SAChB;KACF;IACD,GAAG,EAAE;QACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAChC,OAAO,IAAA,eAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC7C,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC/B,OAAO,IAAA,eAAM,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC5C,CAAC;QACD,MAAM,EAAE,IAAI;KACb;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeclaredGithubAppInstallationDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubAppInstallationDao.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAIhD,
|
|
1
|
+
{"version":3,"file":"DeclaredGithubAppInstallationDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubAppInstallationDao.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAIhD,qGAAkG;AAClG,wGAAqG;AACrG,kGAA+F;AAE/F;;;;GAIG;AACU,QAAA,gCAAgC,GAAG,IAAA,+BAAiB,EAG/D;IACA,IAAI,EAAE,6DAA6B;IACnC,GAAG,EAAE;QACH,GAAG,EAAE;YACH,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBACjC,OAAO,IAAA,6CAAqB,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;YACnE,CAAC;YACD,SAAS,EAAE,IAAI;SAChB;KACF;IACD,GAAG,EAAE;QACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAChC,OAAO,IAAA,uCAAkB,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACzD,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC/B,OAAO,IAAA,uCAAkB,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACxD,CAAC;QACD,MAAM,EAAE,IAAI;KACb;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeclaredGithubBranchDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubBranchDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAA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AAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC/C,CAAC;QACD,MAAM,EAAE,SAAS;KAClB;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeclaredGithubBranchProtectionDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubBranchProtectionDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAAyD;AAIzD,
|
|
1
|
+
{"version":3,"file":"DeclaredGithubBranchProtectionDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubBranchProtectionDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAAyD;AAIzD,uGAAoG;AACpG,qGAAkG;AAClG,qGAAkG;AAElG;;;GAGG;AACU,QAAA,iCAAiC,GAAG,IAAI,4BAAc,CAGjE;IACA,IAAI,EAAE,+DAA8B;IACpC,GAAG,EAAE;QACH,GAAG,EAAE;YACH,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBACjC,OAAO,IAAA,yCAAmB,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;YACjE,CAAC;YACD,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBAC9B,IAAI,IAAA,8BAAa,EAAC,EAAE,EAAE,EAAE,+DAA8B,EAAE,CAAC,CAAC,KAAK,CAAC;oBAC9D,OAAO,IAAA,yCAAmB,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;gBACjE,wCAAuB,CAAC,KAAK,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YACnE,CAAC;SACF;QACD,GAAG,EAAE;YACH,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,SAAS;SACpB;KACF;IACD,GAAG,EAAE;QACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAChC,OAAO,IAAA,yCAAmB,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1D,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC/B,OAAO,IAAA,yCAAmB,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACzD,CAAC;QACD,MAAM,EAAE,SAAS;KAClB;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeclastructDao } from 'declastruct';
|
|
2
|
+
import type { ContextLogTrail } from 'simple-log-methods';
|
|
3
|
+
import type { ContextGithubApi } from '../../domain.objects/ContextGithubApi';
|
|
4
|
+
import { DeclaredGithubOrg } from '../../domain.objects/DeclaredGithubOrg';
|
|
5
|
+
/**
|
|
6
|
+
* .what = declastruct DAO for GitHub Organization resources
|
|
7
|
+
* .why = wraps org operations to conform to declastruct interface
|
|
8
|
+
* .note = orgs cannot be created via API; only existing orgs can be updated
|
|
9
|
+
*/
|
|
10
|
+
export declare const DeclaredGithubOrgDao: DeclastructDao<typeof DeclaredGithubOrg, ContextGithubApi & ContextLogTrail>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeclaredGithubOrgDao = void 0;
|
|
4
|
+
const declastruct_1 = require("declastruct");
|
|
5
|
+
const domain_objects_1 = require("domain-objects");
|
|
6
|
+
const helpful_errors_1 = require("helpful-errors");
|
|
7
|
+
const DeclaredGithubOrg_1 = require("../../domain.objects/DeclaredGithubOrg");
|
|
8
|
+
const getOneOrg_1 = require("../../domain.operations/org/getOneOrg");
|
|
9
|
+
const setOrg_1 = require("../../domain.operations/org/setOrg");
|
|
10
|
+
/**
|
|
11
|
+
* .what = declastruct DAO for GitHub Organization resources
|
|
12
|
+
* .why = wraps org operations to conform to declastruct interface
|
|
13
|
+
* .note = orgs cannot be created via API; only existing orgs can be updated
|
|
14
|
+
*/
|
|
15
|
+
exports.DeclaredGithubOrgDao = new declastruct_1.DeclastructDao({
|
|
16
|
+
dobj: DeclaredGithubOrg_1.DeclaredGithubOrg,
|
|
17
|
+
get: {
|
|
18
|
+
one: {
|
|
19
|
+
byUnique: async (input, context) => {
|
|
20
|
+
return (0, getOneOrg_1.getOneOrg)({ by: { unique: input } }, context);
|
|
21
|
+
},
|
|
22
|
+
byPrimary: undefined,
|
|
23
|
+
byRef: async (input, context) => {
|
|
24
|
+
if ((0, domain_objects_1.isRefByUnique)({ of: DeclaredGithubOrg_1.DeclaredGithubOrg })(input))
|
|
25
|
+
return (0, getOneOrg_1.getOneOrg)({ by: { unique: input } }, context);
|
|
26
|
+
helpful_errors_1.UnexpectedCodePathError.throw('unsupported ref type', { input });
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
ref: {
|
|
30
|
+
byPrimary: undefined,
|
|
31
|
+
byUnique: undefined,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
set: {
|
|
35
|
+
finsert: async (input, context) => {
|
|
36
|
+
return (0, setOrg_1.setOrg)({ finsert: input }, context);
|
|
37
|
+
},
|
|
38
|
+
upsert: async (input, context) => {
|
|
39
|
+
return (0, setOrg_1.setOrg)({ upsert: input }, context);
|
|
40
|
+
},
|
|
41
|
+
delete: undefined, // Cannot delete orgs via this interface
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=DeclaredGithubOrgDao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeclaredGithubOrgDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubOrgDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C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
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeclastructDao } from 'declastruct';
|
|
2
|
+
import type { ContextLogTrail } from 'simple-log-methods';
|
|
3
|
+
import type { ContextGithubApi } from '../../domain.objects/ContextGithubApi';
|
|
4
|
+
import { DeclaredGithubOrgMemberPrivileges } from '../../domain.objects/DeclaredGithubOrgMemberPrivileges';
|
|
5
|
+
/**
|
|
6
|
+
* .what = declastruct DAO for GitHub Organization Member Privileges
|
|
7
|
+
* .why = wraps member privilege operations to conform to declastruct interface
|
|
8
|
+
* .note = KEY SECURITY RESOURCE - controls what non-owners can do
|
|
9
|
+
*/
|
|
10
|
+
export declare const DeclaredGithubOrgMemberPrivilegesDao: DeclastructDao<typeof DeclaredGithubOrgMemberPrivileges, ContextGithubApi & ContextLogTrail>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeclaredGithubOrgMemberPrivilegesDao = void 0;
|
|
4
|
+
const declastruct_1 = require("declastruct");
|
|
5
|
+
const domain_objects_1 = require("domain-objects");
|
|
6
|
+
const helpful_errors_1 = require("helpful-errors");
|
|
7
|
+
const DeclaredGithubOrgMemberPrivileges_1 = require("../../domain.objects/DeclaredGithubOrgMemberPrivileges");
|
|
8
|
+
const getOneOrgMemberPrivileges_1 = require("../../domain.operations/orgMemberPrivileges/getOneOrgMemberPrivileges");
|
|
9
|
+
const setOrgMemberPrivileges_1 = require("../../domain.operations/orgMemberPrivileges/setOrgMemberPrivileges");
|
|
10
|
+
/**
|
|
11
|
+
* .what = declastruct DAO for GitHub Organization Member Privileges
|
|
12
|
+
* .why = wraps member privilege operations to conform to declastruct interface
|
|
13
|
+
* .note = KEY SECURITY RESOURCE - controls what non-owners can do
|
|
14
|
+
*/
|
|
15
|
+
exports.DeclaredGithubOrgMemberPrivilegesDao = new declastruct_1.DeclastructDao({
|
|
16
|
+
dobj: DeclaredGithubOrgMemberPrivileges_1.DeclaredGithubOrgMemberPrivileges,
|
|
17
|
+
get: {
|
|
18
|
+
one: {
|
|
19
|
+
byUnique: async (input, context) => {
|
|
20
|
+
return (0, getOneOrgMemberPrivileges_1.getOneOrgMemberPrivileges)({ by: { unique: input } }, context);
|
|
21
|
+
},
|
|
22
|
+
byPrimary: undefined,
|
|
23
|
+
byRef: async (input, context) => {
|
|
24
|
+
if ((0, domain_objects_1.isRefByUnique)({ of: DeclaredGithubOrgMemberPrivileges_1.DeclaredGithubOrgMemberPrivileges })(input))
|
|
25
|
+
return (0, getOneOrgMemberPrivileges_1.getOneOrgMemberPrivileges)({ by: { unique: input } }, context);
|
|
26
|
+
helpful_errors_1.UnexpectedCodePathError.throw('unsupported ref type', { input });
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
ref: {
|
|
30
|
+
byPrimary: undefined,
|
|
31
|
+
byUnique: undefined,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
set: {
|
|
35
|
+
finsert: async (input, context) => {
|
|
36
|
+
return (0, setOrgMemberPrivileges_1.setOrgMemberPrivileges)({ finsert: input }, context);
|
|
37
|
+
},
|
|
38
|
+
upsert: async (input, context) => {
|
|
39
|
+
return (0, setOrgMemberPrivileges_1.setOrgMemberPrivileges)({ upsert: input }, context);
|
|
40
|
+
},
|
|
41
|
+
delete: undefined, // Cannot delete member privileges (they always exist for an org)
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=DeclaredGithubOrgMemberPrivilegesDao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeclaredGithubOrgMemberPrivilegesDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubOrgMemberPrivilegesDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAAyD;AAIzD,6GAA0G;AAC1G,oHAAiH;AACjH,8GAA2G;AAE3G;;;;GAIG;AACU,QAAA,oCAAoC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
3
|
+
import type { ContextGithubApi } from '../../domain.objects/ContextGithubApi';
|
|
4
|
+
import { DeclaredGithubOrgSecret } from '../../domain.objects/DeclaredGithubOrgSecret';
|
|
5
|
+
/**
|
|
6
|
+
* .what = declastruct DAO for GitHub Organization Secret resources
|
|
7
|
+
* .why = wraps secret operations to conform to declastruct interface
|
|
8
|
+
* .note = secrets are write-only; values are never readable
|
|
9
|
+
*/
|
|
10
|
+
export declare const DeclaredGithubOrgSecretDao: DeclastructDao<typeof DeclaredGithubOrgSecret, ContextGithubApi & ContextLogTrail>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeclaredGithubOrgSecretDao = void 0;
|
|
4
|
+
const declastruct_1 = require("declastruct");
|
|
5
|
+
const domain_objects_1 = require("domain-objects");
|
|
6
|
+
const helpful_errors_1 = require("helpful-errors");
|
|
7
|
+
const DeclaredGithubOrgSecret_1 = require("../../domain.objects/DeclaredGithubOrgSecret");
|
|
8
|
+
const delOrgSecret_1 = require("../../domain.operations/orgSecret/delOrgSecret");
|
|
9
|
+
const getOneOrgSecret_1 = require("../../domain.operations/orgSecret/getOneOrgSecret");
|
|
10
|
+
const setOrgSecret_1 = require("../../domain.operations/orgSecret/setOrgSecret");
|
|
11
|
+
/**
|
|
12
|
+
* .what = declastruct DAO for GitHub Organization Secret resources
|
|
13
|
+
* .why = wraps secret operations to conform to declastruct interface
|
|
14
|
+
* .note = secrets are write-only; values are never readable
|
|
15
|
+
*/
|
|
16
|
+
exports.DeclaredGithubOrgSecretDao = new declastruct_1.DeclastructDao({
|
|
17
|
+
dobj: DeclaredGithubOrgSecret_1.DeclaredGithubOrgSecret,
|
|
18
|
+
get: {
|
|
19
|
+
one: {
|
|
20
|
+
byUnique: async (input, context) => {
|
|
21
|
+
return (0, getOneOrgSecret_1.getOneOrgSecret)({ by: { unique: input } }, context);
|
|
22
|
+
},
|
|
23
|
+
byPrimary: undefined,
|
|
24
|
+
byRef: async (input, context) => {
|
|
25
|
+
if ((0, domain_objects_1.isRefByUnique)({ of: DeclaredGithubOrgSecret_1.DeclaredGithubOrgSecret })(input))
|
|
26
|
+
return (0, getOneOrgSecret_1.getOneOrgSecret)({ by: { unique: input } }, context);
|
|
27
|
+
helpful_errors_1.UnexpectedCodePathError.throw('unsupported ref type', { input });
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
ref: {
|
|
31
|
+
byPrimary: undefined,
|
|
32
|
+
byUnique: undefined,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
set: {
|
|
36
|
+
finsert: async (input, context) => {
|
|
37
|
+
return (0, setOrgSecret_1.setOrgSecret)({ finsert: input }, context);
|
|
38
|
+
},
|
|
39
|
+
upsert: async (input, context) => {
|
|
40
|
+
return (0, setOrgSecret_1.setOrgSecret)({ upsert: input }, context);
|
|
41
|
+
},
|
|
42
|
+
delete: async (input, context) => {
|
|
43
|
+
return (0, delOrgSecret_1.delOrgSecret)({ secret: input }, context);
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=DeclaredGithubOrgSecretDao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeclaredGithubOrgSecretDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubOrgSecretDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAAyD;AAIzD,yFAAsF;AACtF,gFAA6E;AAC7E,sFAAmF;AACnF,gFAA6E;AAE7E;;;;GAIG;AACU,QAAA,0BAA0B,GAAG,IAAI,4BAAc,CAG1D;IACA,IAAI,EAAE,iDAAuB;IAC7B,GAAG,EAAE;QACH,GAAG,EAAE;YACH,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBACjC,OAAO,IAAA,iCAAe,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;YAC7D,CAAC;YACD,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBAC9B,IAAI,IAAA,8BAAa,EAAC,EAAE,EAAE,EAAE,iDAAuB,EAAE,CAAC,CAAC,KAAK,CAAC;oBACvD,OAAO,IAAA,iCAAe,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;gBAC7D,wCAAuB,CAAC,KAAK,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YACnE,CAAC;SACF;QACD,GAAG,EAAE;YACH,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,SAAS;SACpB;KACF;IACD,GAAG,EAAE;QACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAChC,OAAO,IAAA,2BAAY,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACnD,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC/B,OAAO,IAAA,2BAAY,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC/B,OAAO,IAAA,2BAAY,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC;KACF;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeclastructDao } from 'declastruct';
|
|
2
|
+
import type { ContextLogTrail } from 'simple-log-methods';
|
|
3
|
+
import type { ContextGithubApi } from '../../domain.objects/ContextGithubApi';
|
|
4
|
+
import { DeclaredGithubOrgVariable } from '../../domain.objects/DeclaredGithubOrgVariable';
|
|
5
|
+
/**
|
|
6
|
+
* .what = declastruct DAO for GitHub Organization Variable resources
|
|
7
|
+
* .why = wraps variable operations to conform to declastruct interface
|
|
8
|
+
*/
|
|
9
|
+
export declare const DeclaredGithubOrgVariableDao: DeclastructDao<typeof DeclaredGithubOrgVariable, ContextGithubApi & ContextLogTrail>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeclaredGithubOrgVariableDao = void 0;
|
|
4
|
+
const declastruct_1 = require("declastruct");
|
|
5
|
+
const domain_objects_1 = require("domain-objects");
|
|
6
|
+
const helpful_errors_1 = require("helpful-errors");
|
|
7
|
+
const DeclaredGithubOrgVariable_1 = require("../../domain.objects/DeclaredGithubOrgVariable");
|
|
8
|
+
const delOrgVariable_1 = require("../../domain.operations/orgVariable/delOrgVariable");
|
|
9
|
+
const getOneOrgVariable_1 = require("../../domain.operations/orgVariable/getOneOrgVariable");
|
|
10
|
+
const setOrgVariable_1 = require("../../domain.operations/orgVariable/setOrgVariable");
|
|
11
|
+
/**
|
|
12
|
+
* .what = declastruct DAO for GitHub Organization Variable resources
|
|
13
|
+
* .why = wraps variable operations to conform to declastruct interface
|
|
14
|
+
*/
|
|
15
|
+
exports.DeclaredGithubOrgVariableDao = new declastruct_1.DeclastructDao({
|
|
16
|
+
dobj: DeclaredGithubOrgVariable_1.DeclaredGithubOrgVariable,
|
|
17
|
+
get: {
|
|
18
|
+
one: {
|
|
19
|
+
byUnique: async (input, context) => {
|
|
20
|
+
return (0, getOneOrgVariable_1.getOneOrgVariable)({ by: { unique: input } }, context);
|
|
21
|
+
},
|
|
22
|
+
byPrimary: undefined,
|
|
23
|
+
byRef: async (input, context) => {
|
|
24
|
+
if ((0, domain_objects_1.isRefByUnique)({ of: DeclaredGithubOrgVariable_1.DeclaredGithubOrgVariable })(input))
|
|
25
|
+
return (0, getOneOrgVariable_1.getOneOrgVariable)({ by: { unique: input } }, context);
|
|
26
|
+
helpful_errors_1.UnexpectedCodePathError.throw('unsupported ref type', { input });
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
ref: {
|
|
30
|
+
byPrimary: undefined,
|
|
31
|
+
byUnique: undefined,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
set: {
|
|
35
|
+
finsert: async (input, context) => {
|
|
36
|
+
return (0, setOrgVariable_1.setOrgVariable)({ finsert: input }, context);
|
|
37
|
+
},
|
|
38
|
+
upsert: async (input, context) => {
|
|
39
|
+
return (0, setOrgVariable_1.setOrgVariable)({ upsert: input }, context);
|
|
40
|
+
},
|
|
41
|
+
delete: async (input, context) => {
|
|
42
|
+
return (0, delOrgVariable_1.delOrgVariable)({ variable: input }, context);
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=DeclaredGithubOrgVariableDao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeclaredGithubOrgVariableDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubOrgVariableDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAAyD;AAIzD,6FAA0F;AAC1F,sFAAmF;AACnF,4FAAyF;AACzF,sFAAmF;AAEnF;;;GAGG;AACU,QAAA,4BAA4B,GAAG,IAAI,4BAAc,CAG5D;IACA,IAAI,EAAE,qDAAyB;IAC/B,GAAG,EAAE;QACH,GAAG,EAAE;YACH,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBACjC,OAAO,IAAA,qCAAiB,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;YAC/D,CAAC;YACD,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBAC9B,IAAI,IAAA,8BAAa,EAAC,EAAE,EAAE,EAAE,qDAAyB,EAAE,CAAC,CAAC,KAAK,CAAC;oBACzD,OAAO,IAAA,qCAAiB,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;gBAC/D,wCAAuB,CAAC,KAAK,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YACnE,CAAC;SACF;QACD,GAAG,EAAE;YACH,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,SAAS;SACpB;KACF;IACD,GAAG,EAAE;QACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAChC,OAAO,IAAA,+BAAc,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACrD,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC/B,OAAO,IAAA,+BAAc,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACpD,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC/B,OAAO,IAAA,+BAAc,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QACtD,CAAC;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeclaredGithubRepoConfigDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubRepoConfigDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAAyD;AAIzD,
|
|
1
|
+
{"version":3,"file":"DeclaredGithubRepoConfigDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubRepoConfigDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAA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file":"DeclaredGithubRepoDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubRepoDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAAyD;AAIzD
|
|
1
|
+
{"version":3,"file":"DeclaredGithubRepoDao.js","sourceRoot":"","sources":["../../../src/access/daos/DeclaredGithubRepoDao.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,mDAA+C;AAC/C,mDAAyD;AAIzD,+EAA4E;AAC5E,iEAA8D;AAC9D,iEAA8D;AAE9D;;;GAGG;AACU,QAAA,qBAAqB,GAAG,IAAI,4BAAc,CAGrD;IACA,IAAI,EAAE,uCAAkB;IACxB,GAAG,EAAE;QACH,GAAG,EAAE;YACH,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBACjC,OAAO,IAAA,iBAAO,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;YACrD,CAAC;YACD,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBAC9B,IAAI,IAAA,8BAAa,EAAC,EAAE,EAAE,EAAE,uCAAkB,EAAE,CAAC,CAAC,KAAK,CAAC;oBAClD,OAAO,IAAA,iBAAO,EAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;gBACrD,wCAAuB,CAAC,KAAK,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YACnE,CAAC;SACF;QACD,GAAG,EAAE;YACH,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,SAAS;SACpB;KACF;IACD,GAAG,EAAE;QACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAChC,OAAO,IAAA,iBAAO,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC/B,OAAO,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;QAC7C,CAAC;QACD,MAAM,EAAE,SAAS;KAClB;CACF,CAAC,CAAC"}
|
|
@@ -7,6 +7,10 @@ export { DeclaredGithubAppInstallation } from '../../domain.objects/DeclaredGith
|
|
|
7
7
|
export type { DeclaredGithubAppPermissions } from '../../domain.objects/DeclaredGithubAppPermissions';
|
|
8
8
|
export { DeclaredGithubBranch } from '../../domain.objects/DeclaredGithubBranch';
|
|
9
9
|
export { DeclaredGithubBranchProtection } from '../../domain.objects/DeclaredGithubBranchProtection';
|
|
10
|
+
export { DeclaredGithubOrg } from '../../domain.objects/DeclaredGithubOrg';
|
|
11
|
+
export { DeclaredGithubOrgMemberPrivileges } from '../../domain.objects/DeclaredGithubOrgMemberPrivileges';
|
|
12
|
+
export { DeclaredGithubOrgSecret } from '../../domain.objects/DeclaredGithubOrgSecret';
|
|
13
|
+
export { DeclaredGithubOrgVariable } from '../../domain.objects/DeclaredGithubOrgVariable';
|
|
10
14
|
export { DeclaredGithubOwner } from '../../domain.objects/DeclaredGithubOwner';
|
|
11
15
|
export { DeclaredGithubRepo } from '../../domain.objects/DeclaredGithubRepo';
|
|
12
16
|
export { DeclaredGithubRepoConfig } from '../../domain.objects/DeclaredGithubRepoConfig';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* .why = enables consumers to use the declastruct provider interface and domain objects
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.getDeclastructGithubProvider = exports.DeclaredGithubRepoConfig = exports.DeclaredGithubRepo = exports.DeclaredGithubOwner = exports.DeclaredGithubBranchProtection = exports.DeclaredGithubBranch = exports.DeclaredGithubAppInstallation = exports.DeclaredGithubApp = void 0;
|
|
7
|
+
exports.getDeclastructGithubProvider = exports.DeclaredGithubRepoConfig = exports.DeclaredGithubRepo = exports.DeclaredGithubOwner = exports.DeclaredGithubOrgVariable = exports.DeclaredGithubOrgSecret = exports.DeclaredGithubOrgMemberPrivileges = exports.DeclaredGithubOrg = exports.DeclaredGithubBranchProtection = exports.DeclaredGithubBranch = exports.DeclaredGithubAppInstallation = exports.DeclaredGithubApp = void 0;
|
|
8
8
|
// domain objects - apps
|
|
9
9
|
var DeclaredGithubApp_1 = require("../../domain.objects/DeclaredGithubApp");
|
|
10
10
|
Object.defineProperty(exports, "DeclaredGithubApp", { enumerable: true, get: function () { return DeclaredGithubApp_1.DeclaredGithubApp; } });
|
|
@@ -15,6 +15,15 @@ var DeclaredGithubBranch_1 = require("../../domain.objects/DeclaredGithubBranch"
|
|
|
15
15
|
Object.defineProperty(exports, "DeclaredGithubBranch", { enumerable: true, get: function () { return DeclaredGithubBranch_1.DeclaredGithubBranch; } });
|
|
16
16
|
var DeclaredGithubBranchProtection_1 = require("../../domain.objects/DeclaredGithubBranchProtection");
|
|
17
17
|
Object.defineProperty(exports, "DeclaredGithubBranchProtection", { enumerable: true, get: function () { return DeclaredGithubBranchProtection_1.DeclaredGithubBranchProtection; } });
|
|
18
|
+
// domain objects - orgs
|
|
19
|
+
var DeclaredGithubOrg_1 = require("../../domain.objects/DeclaredGithubOrg");
|
|
20
|
+
Object.defineProperty(exports, "DeclaredGithubOrg", { enumerable: true, get: function () { return DeclaredGithubOrg_1.DeclaredGithubOrg; } });
|
|
21
|
+
var DeclaredGithubOrgMemberPrivileges_1 = require("../../domain.objects/DeclaredGithubOrgMemberPrivileges");
|
|
22
|
+
Object.defineProperty(exports, "DeclaredGithubOrgMemberPrivileges", { enumerable: true, get: function () { return DeclaredGithubOrgMemberPrivileges_1.DeclaredGithubOrgMemberPrivileges; } });
|
|
23
|
+
var DeclaredGithubOrgSecret_1 = require("../../domain.objects/DeclaredGithubOrgSecret");
|
|
24
|
+
Object.defineProperty(exports, "DeclaredGithubOrgSecret", { enumerable: true, get: function () { return DeclaredGithubOrgSecret_1.DeclaredGithubOrgSecret; } });
|
|
25
|
+
var DeclaredGithubOrgVariable_1 = require("../../domain.objects/DeclaredGithubOrgVariable");
|
|
26
|
+
Object.defineProperty(exports, "DeclaredGithubOrgVariable", { enumerable: true, get: function () { return DeclaredGithubOrgVariable_1.DeclaredGithubOrgVariable; } });
|
|
18
27
|
var DeclaredGithubOwner_1 = require("../../domain.objects/DeclaredGithubOwner");
|
|
19
28
|
Object.defineProperty(exports, "DeclaredGithubOwner", { enumerable: true, get: function () { return DeclaredGithubOwner_1.DeclaredGithubOwner; } });
|
|
20
29
|
var DeclaredGithubRepo_1 = require("../../domain.objects/DeclaredGithubRepo");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contract/sdks/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,wBAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contract/sdks/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,wBAAwB;AACxB,2EAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAC1B,mGAAkG;AAAzF,8IAAA,6BAA6B,OAAA;AAEtC,yBAAyB;AACzB,iFAAgF;AAAvE,4HAAA,oBAAoB,OAAA;AAC7B,qGAAoG;AAA3F,gJAAA,8BAA8B,OAAA;AACvC,wBAAwB;AACxB,2EAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAC1B,2GAA0G;AAAjG,sJAAA,iCAAiC,OAAA;AAC1C,uFAAsF;AAA7E,kIAAA,uBAAuB,OAAA;AAChC,2FAA0F;AAAjF,sIAAA,yBAAyB,OAAA;AAClC,+EAA8E;AAArE,0HAAA,mBAAmB,OAAA;AAC5B,6EAA4E;AAAnE,wHAAA,kBAAkB,OAAA;AAC3B,yFAAwF;AAA/E,oIAAA,wBAAwB,OAAA;AAGjC,6GAA4G;AAAnG,4IAAA,4BAA4B,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeclaredGithubApp.js","sourceRoot":"","sources":["../../src/domain.objects/DeclaredGithubApp.ts"],"names":[],"mappings":";;;AACA,mDAA8C;
|
|
1
|
+
{"version":3,"file":"DeclaredGithubApp.js","sourceRoot":"","sources":["../../src/domain.objects/DeclaredGithubApp.ts"],"names":[],"mappings":";;;AACA,mDAA8C;AAE9C,iFAA8E;AAC9E,+DAA4D;AA6E5D,MAAa,iBACX,SAAQ,6BAA+B;;AADzC,8CAUC;AANe,yBAAO,GAAG,CAAC,IAAI,CAAU,CAAC;AAC1B,wBAAM,GAAG,CAAC,OAAO,EAAE,MAAM,CAAU,CAAC;AACpC,wBAAM,GAAG;IACrB,KAAK,EAAE,yCAAmB;IAC1B,WAAW,EAAE,2DAA4B;CAC1C,CAAC"}
|
|
@@ -98,9 +98,13 @@ export interface DeclaredGithubAppOrganizationPermissions {
|
|
|
98
98
|
*/
|
|
99
99
|
hooks?: GithubAppPermissionLevel | null;
|
|
100
100
|
/**
|
|
101
|
-
* .what = organization-wide secrets
|
|
101
|
+
* .what = organization-wide actions secrets
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
actionsSecrets?: GithubAppPermissionLevel | null;
|
|
104
|
+
/**
|
|
105
|
+
* .what = organization-wide actions variables
|
|
106
|
+
*/
|
|
107
|
+
actionsVariables?: GithubAppPermissionLevel | null;
|
|
104
108
|
/**
|
|
105
109
|
* .what = project management
|
|
106
110
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeclaredGithubAppPermissions.js","sourceRoot":"","sources":["../../src/domain.objects/DeclaredGithubAppPermissions.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;
|
|
1
|
+
{"version":3,"file":"DeclaredGithubAppPermissions.js","sourceRoot":"","sources":["../../src/domain.objects/DeclaredGithubAppPermissions.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAuJ/C,MAAa,4BACX,SAAQ,8BAA2C;;AADrD,oEAQC;AAJe,mCAAM,GAAG;IACrB,UAAU,EAAE,8BAAa;IACzB,YAAY,EAAE,8BAAa;CAC5B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { UniDateTime } from '@ehmpathy/uni-time';
|
|
2
|
+
import { DomainEntity } from 'domain-objects';
|
|
3
|
+
/**
|
|
4
|
+
* .what = a declarative structure which represents GitHub Organization profile
|
|
5
|
+
* .why = enables declarative management of org profile settings
|
|
6
|
+
*/
|
|
7
|
+
export interface DeclaredGithubOrg {
|
|
8
|
+
/**
|
|
9
|
+
* .what = GitHub's internal org ID
|
|
10
|
+
* .note = is @metadata -> may be undefined
|
|
11
|
+
*/
|
|
12
|
+
id?: number;
|
|
13
|
+
/**
|
|
14
|
+
* .what = when the org was created
|
|
15
|
+
* .note = is @metadata -> may be undefined
|
|
16
|
+
*/
|
|
17
|
+
createdAt?: UniDateTime;
|
|
18
|
+
/**
|
|
19
|
+
* .what = when the org was last updated
|
|
20
|
+
* .note = is @metadata -> may be undefined
|
|
21
|
+
*/
|
|
22
|
+
updatedAt?: UniDateTime;
|
|
23
|
+
/**
|
|
24
|
+
* .what = organization login/handle
|
|
25
|
+
* .note = e.g., 'ehmpathy'
|
|
26
|
+
*/
|
|
27
|
+
login: string;
|
|
28
|
+
/**
|
|
29
|
+
* .what = display name of the organization (shown on profile)
|
|
30
|
+
* .note = null if not set (falls back to login in UI)
|
|
31
|
+
*/
|
|
32
|
+
name: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* .what = organization description
|
|
35
|
+
* .note = null if not set
|
|
36
|
+
*/
|
|
37
|
+
description: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* .what = billing email address (write-only)
|
|
40
|
+
* .note = if undefined, existing value is kept unchanged
|
|
41
|
+
*/
|
|
42
|
+
billingEmail?: string;
|
|
43
|
+
/**
|
|
44
|
+
* .what = whether 2FA is required for all members
|
|
45
|
+
* .note = is @metadata -> read-only
|
|
46
|
+
*/
|
|
47
|
+
twoFactorRequirementEnabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* .what = count of public repos
|
|
50
|
+
* .note = is @metadata -> read-only
|
|
51
|
+
*/
|
|
52
|
+
publicRepos?: number;
|
|
53
|
+
}
|
|
54
|
+
export declare class DeclaredGithubOrg extends DomainEntity<DeclaredGithubOrg> implements DeclaredGithubOrg {
|
|
55
|
+
static primary: readonly ["id"];
|
|
56
|
+
static unique: readonly ["login"];
|
|
57
|
+
static readonly: readonly ["twoFactorRequirementEnabled", "publicRepos"];
|
|
58
|
+
static writeonly: readonly ["billingEmail"];
|
|
59
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeclaredGithubOrg = void 0;
|
|
4
|
+
const domain_objects_1 = require("domain-objects");
|
|
5
|
+
class DeclaredGithubOrg extends domain_objects_1.DomainEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.DeclaredGithubOrg = DeclaredGithubOrg;
|
|
8
|
+
DeclaredGithubOrg.primary = ['id'];
|
|
9
|
+
DeclaredGithubOrg.unique = ['login'];
|
|
10
|
+
DeclaredGithubOrg.readonly = [
|
|
11
|
+
'twoFactorRequirementEnabled',
|
|
12
|
+
'publicRepos',
|
|
13
|
+
];
|
|
14
|
+
DeclaredGithubOrg.writeonly = ['billingEmail'];
|
|
15
|
+
//# sourceMappingURL=DeclaredGithubOrg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeclaredGithubOrg.js","sourceRoot":"","sources":["../../src/domain.objects/DeclaredGithubOrg.ts"],"names":[],"mappings":";;;AACA,mDAA8C;AAkE9C,MAAa,iBACX,SAAQ,6BAA+B;;AADzC,8CAWC;AAPe,yBAAO,GAAG,CAAC,IAAI,CAAU,CAAC;AAC1B,wBAAM,GAAG,CAAC,OAAO,CAAU,CAAC;AAC5B,0BAAQ,GAAG;IACvB,6BAA6B;IAC7B,aAAa;CACL,CAAC;AACG,2BAAS,GAAG,CAAC,cAAc,CAAU,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { UniDateTime } from '@ehmpathy/uni-time';
|
|
2
|
+
import { DomainEntity, RefByUnique } from 'domain-objects';
|
|
3
|
+
import type { DeclaredGithubOrg } from './DeclaredGithubOrg';
|
|
4
|
+
/**
|
|
5
|
+
* .what = a declarative structure which represents GitHub Organization member privileges
|
|
6
|
+
* .why = enables declarative management of what org members are allowed to do
|
|
7
|
+
* .note = KEY SECURITY RESOURCE - controls what non-owners can do
|
|
8
|
+
*/
|
|
9
|
+
export interface DeclaredGithubOrgMemberPrivileges {
|
|
10
|
+
/**
|
|
11
|
+
* .what = when the settings were last updated
|
|
12
|
+
* .note = is @metadata -> may be undefined
|
|
13
|
+
*/
|
|
14
|
+
updatedAt?: UniDateTime;
|
|
15
|
+
/**
|
|
16
|
+
* .what = reference to the organization
|
|
17
|
+
*/
|
|
18
|
+
org: RefByUnique<typeof DeclaredGithubOrg>;
|
|
19
|
+
/**
|
|
20
|
+
* .what = whether non-admin members can create repositories
|
|
21
|
+
*/
|
|
22
|
+
membersCanCreateRepositories: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* .what = whether members can create PUBLIC repositories
|
|
25
|
+
* .note = only applies if membersCanCreateRepositories is true
|
|
26
|
+
*/
|
|
27
|
+
membersCanCreatePublicRepositories: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* .what = whether members can create PRIVATE repositories
|
|
30
|
+
* .note = only applies if membersCanCreateRepositories is true
|
|
31
|
+
*/
|
|
32
|
+
membersCanCreatePrivateRepositories: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* .what = whether members can create INTERNAL repositories
|
|
35
|
+
* .note = only available for enterprise orgs; null if not enterprise
|
|
36
|
+
*/
|
|
37
|
+
membersCanCreateInternalRepositories: boolean | null;
|
|
38
|
+
/**
|
|
39
|
+
* .what = whether members with admin permissions can DELETE or TRANSFER repositories
|
|
40
|
+
* .note = KEY SECURITY SETTING - false means only org owners can delete/transfer
|
|
41
|
+
* .note = GitHub default is true (DANGEROUS)
|
|
42
|
+
*/
|
|
43
|
+
membersCanDeleteRepositories: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* .what = whether members with admin permissions can change repository VISIBILITY
|
|
46
|
+
* .note = KEY SECURITY SETTING - false means only org owners can change visibility
|
|
47
|
+
* .note = GitHub default is true (DANGEROUS)
|
|
48
|
+
*/
|
|
49
|
+
membersCanChangeRepoVisibility: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* .what = whether members can fork private repositories
|
|
52
|
+
*/
|
|
53
|
+
membersCanForkPrivateRepositories: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* .what = whether members can invite outside collaborators
|
|
56
|
+
*/
|
|
57
|
+
membersCanInviteOutsideCollaborators: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* .what = whether members can create GitHub Pages sites
|
|
60
|
+
*/
|
|
61
|
+
membersCanCreatePages: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* .what = whether members can create public GitHub Pages sites
|
|
64
|
+
*/
|
|
65
|
+
membersCanCreatePublicPages: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* .what = whether members can create private GitHub Pages sites
|
|
68
|
+
*/
|
|
69
|
+
membersCanCreatePrivatePages: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* .what = default permission level for new repos
|
|
72
|
+
*/
|
|
73
|
+
defaultRepositoryPermission: 'read' | 'write' | 'admin' | 'none';
|
|
74
|
+
}
|
|
75
|
+
export declare class DeclaredGithubOrgMemberPrivileges extends DomainEntity<DeclaredGithubOrgMemberPrivileges> implements DeclaredGithubOrgMemberPrivileges {
|
|
76
|
+
static unique: readonly ["org"];
|
|
77
|
+
static readonly: readonly ["updatedAt"];
|
|
78
|
+
static nested: {
|
|
79
|
+
org: {
|
|
80
|
+
new (props: RefByUnique<typeof DeclaredGithubOrg, any, any, any>): RefByUnique<typeof DeclaredGithubOrg, any, any, any>;
|
|
81
|
+
build<TDobj extends import("domain-objects").Refable<TShape, TPrimary, TUnique>, TShape extends import("domain-objects/dist/reference/Refable").DomainObjectShape = any, TPrimary extends readonly string[] = any, TUnique extends readonly string[] = any>(props: RefByUnique<TDobj, TShape, TPrimary, TUnique>): RefByUnique<TDobj, TShape, TPrimary, TUnique>;
|
|
82
|
+
as<TDobj_1 extends import("domain-objects").Refable<TShape_1, TPrimary_1, TUnique_1>, TShape_1 extends import("domain-objects/dist/reference/Refable").DomainObjectShape = any, TPrimary_1 extends readonly string[] = any, TUnique_1 extends readonly string[] = any>(props: RefByUnique<TDobj_1, TShape_1, TPrimary_1, TUnique_1>): RefByUnique<TDobj_1, TShape_1, TPrimary_1, TUnique_1>;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeclaredGithubOrgMemberPrivileges = void 0;
|
|
4
|
+
const domain_objects_1 = require("domain-objects");
|
|
5
|
+
class DeclaredGithubOrgMemberPrivileges extends domain_objects_1.DomainEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.DeclaredGithubOrgMemberPrivileges = DeclaredGithubOrgMemberPrivileges;
|
|
8
|
+
DeclaredGithubOrgMemberPrivileges.unique = ['org'];
|
|
9
|
+
DeclaredGithubOrgMemberPrivileges.readonly = ['updatedAt'];
|
|
10
|
+
DeclaredGithubOrgMemberPrivileges.nested = {
|
|
11
|
+
org: (domain_objects_1.RefByUnique),
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=DeclaredGithubOrgMemberPrivileges.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeclaredGithubOrgMemberPrivileges.js","sourceRoot":"","sources":["../../src/domain.objects/DeclaredGithubOrgMemberPrivileges.ts"],"names":[],"mappings":";;;AACA,mDAA2D;AAyG3D,MAAa,iCACX,SAAQ,6BAA+C;;AADzD,8EASC;AALe,wCAAM,GAAG,CAAC,KAAK,CAAU,CAAC;AAC1B,0CAAQ,GAAG,CAAC,WAAW,CAAU,CAAC;AAClC,wCAAM,GAAG;IACrB,GAAG,EAAE,CAAA,4BAAqC,CAAA;CAC3C,CAAC"}
|