nucleus-core-ts 0.10.233 → 0.10.235
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/.build-ok +1 -1
- package/dist/dist/index.d.ts +100 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -20
- package/dist/server.d.ts +4 -0
- package/dist/server.js +19 -19
- package/dist/src/Data/storeReadTypes.d.ts +1 -1
- package/dist/src/Nucleus/routes/auth/accounts/types.d.ts +7 -0
- package/dist/src/Nucleus/routes/auth/apiKeys/storeApiKey.d.ts +28 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/account.d.ts +35 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/accountRoutes.d.ts +4 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/audit.d.ts +38 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/bodies.d.ts +11 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/creation.d.ts +9 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/emailTemplate.d.ts +33 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/ensure.d.ts +29 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/guard.d.ts +25 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/index.d.ts +15 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/keyRoutes.d.ts +4 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/keys.d.ts +35 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/lifecycle.d.ts +45 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/messages.d.ts +3 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/outcome.d.ts +10 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/paths.d.ts +10 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/profiles.d.ts +27 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/provision.d.ts +19 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/reservedRoles.d.ts +11 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/routeDoc.d.ts +8 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/routeKit.d.ts +9 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/seal.d.ts +77 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/serve.d.ts +62 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/signIn.d.ts +7 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/tables.d.ts +9 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/types.d.ts +102 -0
- package/dist/src/Nucleus/routes/auth/serviceAccounts/unseal.d.ts +14 -0
- package/dist/src/Nucleus/routes/auth/types.d.ts +8 -0
- package/dist/src/Nucleus/routes/notification/index.d.ts +3 -3
- package/dist/src/Nucleus/routes/shared/serviceToken.d.ts +34 -0
- package/dist/src/Nucleus/validateConfig.d.ts +18 -0
- package/dist/src/types.d.ts +46 -0
- package/package.json +1 -1
- package/public/components/docs/content/oauthApiKeys.ts +53 -0
- package/schemas/config.nucleus.json +66 -0
package/dist/.build-ok
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.235
|
package/dist/dist/index.d.ts
CHANGED
|
@@ -877,6 +877,106 @@ export function createNucleusServer(options: any): Promise<{
|
|
|
877
877
|
data: any;
|
|
878
878
|
runtime: any;
|
|
879
879
|
}>;
|
|
880
|
+
export function createMemoryHostStore(): {
|
|
881
|
+
rows: Map<any, any>;
|
|
882
|
+
subMerchants: Map<any, any>;
|
|
883
|
+
callbacks: Set<any>;
|
|
884
|
+
create(input: any): Promise<{
|
|
885
|
+
id: string;
|
|
886
|
+
scope: any;
|
|
887
|
+
reference: any;
|
|
888
|
+
status: string;
|
|
889
|
+
amountMinor: any;
|
|
890
|
+
currency: any;
|
|
891
|
+
providerPaymentId: null;
|
|
892
|
+
refundedMinor: number;
|
|
893
|
+
items: any;
|
|
894
|
+
}>;
|
|
895
|
+
started(id: any, paymentId: any): Promise<void>;
|
|
896
|
+
startedCheckout(id: any, token: any): Promise<void>;
|
|
897
|
+
findByToken(token: any): Promise<any>;
|
|
898
|
+
failed(id: any): Promise<void>;
|
|
899
|
+
find(id: any): Promise<any>;
|
|
900
|
+
settle(id: any, settlement: any): Promise<boolean>;
|
|
901
|
+
logCallback(key2: any): Promise<boolean>;
|
|
902
|
+
withRefundLock(id: any, work: any): Promise<any>;
|
|
903
|
+
findSubMerchant(scope: any, externalId: any): Promise<{
|
|
904
|
+
key: any;
|
|
905
|
+
scope: any;
|
|
906
|
+
externalId: any;
|
|
907
|
+
} | null>;
|
|
908
|
+
saveSubMerchant(input: any): Promise<void>;
|
|
909
|
+
};
|
|
910
|
+
export function createHostPayments(options: any): {
|
|
911
|
+
registerSubMerchant: (input: any) => Promise<{
|
|
912
|
+
ok: boolean;
|
|
913
|
+
code: any;
|
|
914
|
+
message: any;
|
|
915
|
+
} | {
|
|
916
|
+
ok: boolean;
|
|
917
|
+
subMerchantKey: any;
|
|
918
|
+
status: string;
|
|
919
|
+
}>;
|
|
920
|
+
updateSubMerchant: (input: any) => Promise<{
|
|
921
|
+
ok: boolean;
|
|
922
|
+
code: any;
|
|
923
|
+
message: any;
|
|
924
|
+
} | {
|
|
925
|
+
ok: boolean;
|
|
926
|
+
}>;
|
|
927
|
+
startSplitPayment: (input: any) => Promise<{
|
|
928
|
+
ok: boolean;
|
|
929
|
+
code: any;
|
|
930
|
+
message: any;
|
|
931
|
+
} | {
|
|
932
|
+
ok: boolean;
|
|
933
|
+
transactionId: any;
|
|
934
|
+
paymentId: any;
|
|
935
|
+
html: any;
|
|
936
|
+
}>;
|
|
937
|
+
startCheckout: (input: any) => Promise<{
|
|
938
|
+
ok: boolean;
|
|
939
|
+
code: any;
|
|
940
|
+
message: any;
|
|
941
|
+
} | {
|
|
942
|
+
ok: boolean;
|
|
943
|
+
transactionId: any;
|
|
944
|
+
token: any;
|
|
945
|
+
paymentPageUrl: any;
|
|
946
|
+
checkoutFormContent: any;
|
|
947
|
+
expiresAt: any;
|
|
948
|
+
}>;
|
|
949
|
+
completeCheckout: (token: any) => Promise<{
|
|
950
|
+
kind: any;
|
|
951
|
+
transactionId: any;
|
|
952
|
+
scope: any;
|
|
953
|
+
reference: any;
|
|
954
|
+
paymentId: any;
|
|
955
|
+
paidMinor: any;
|
|
956
|
+
currency: any;
|
|
957
|
+
replay: any;
|
|
958
|
+
message: any;
|
|
959
|
+
} | {
|
|
960
|
+
kind: string;
|
|
961
|
+
reason: string;
|
|
962
|
+
}>;
|
|
963
|
+
handleCallback: (form: any) => Promise<{
|
|
964
|
+
kind: any;
|
|
965
|
+
transactionId: any;
|
|
966
|
+
scope: any;
|
|
967
|
+
reference: any;
|
|
968
|
+
paymentId: any;
|
|
969
|
+
paidMinor: any;
|
|
970
|
+
currency: any;
|
|
971
|
+
replay: any;
|
|
972
|
+
message: any;
|
|
973
|
+
} | {
|
|
974
|
+
kind: string;
|
|
975
|
+
reason: string;
|
|
976
|
+
}>;
|
|
977
|
+
refund: (input: any) => Promise<any>;
|
|
978
|
+
transaction: (id: any, scope: any) => Promise<any>;
|
|
979
|
+
};
|
|
880
980
|
export function createFakeAiProvider(answers: any): {
|
|
881
981
|
name: string;
|
|
882
982
|
calls: any[];
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ export { configureOAuthLinkAuthorization, type OAuthLinkAuthorizationHooks, type
|
|
|
62
62
|
export { type ProfileSyncInput, type ProfileSyncResult, resolveProfileSyncUpdates, } from './src/Services/OAuth/profileSync';
|
|
63
63
|
export { configureProfileSync, type ProfileSyncHooks, profileSyncHooks, type ResolveProfileSync, } from './src/Services/OAuth/profileSyncHooks';
|
|
64
64
|
export type { OAuthConfig, OAuthProfileSyncMapping } from './src/Services/OAuth/types';
|
|
65
|
+
export { createHostPayments, createMemoryHostStore, type HostPayments, type HostPaymentsOptions, } from './src/Services/Payment/Host';
|
|
66
|
+
export type * from './src/Services/Payment/Host/types';
|
|
65
67
|
export { isTenantFeatureEnabled, refreshAllTenants, refreshTenant, refreshTenantFeatures, } from './src/Services/Tenant/hostFeatures';
|
|
66
68
|
export { type HostWriter, type TenantAuditRow, type TenantNotificationRow, writeTenantAudit, writeTenantNotification, writeTenantNotifications, } from './src/Services/Tenant/hostWrites';
|
|
67
69
|
export type { PgConnection } from './src/Services/Tenant/pgConnection';
|