@contractspec/example.openbanking-powens 3.7.6 → 3.7.10

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.
@@ -0,0 +1,44 @@
1
+ import { defineJob } from '@contractspec/lib.contracts-spec/jobs/spec';
2
+ import {
3
+ OwnersEnum,
4
+ StabilityEnum,
5
+ } from '@contractspec/lib.contracts-spec/ownership';
6
+ import { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';
7
+
8
+ const PowensSyncDispatchPayloadModel = defineSchemaModel({
9
+ name: 'PowensSyncDispatchPayload',
10
+ description:
11
+ 'Payload enqueued from Powens OAuth callbacks or webhooks before dispatching sync workflows.',
12
+ fields: {
13
+ tenantId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
14
+ connectionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
15
+ eventType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
16
+ userUuid: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
17
+ accountUuid: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
18
+ },
19
+ });
20
+
21
+ export const PowensSyncDispatchJob = defineJob({
22
+ meta: {
23
+ key: 'openbanking-powens.job.sync-dispatch',
24
+ version: '1.0.0',
25
+ title: 'Powens Sync Dispatch Job',
26
+ description:
27
+ 'Queues the canonical open banking sync workflows after Powens callbacks and webhooks are verified.',
28
+ domain: 'open-banking',
29
+ owners: [OwnersEnum.PlatformFinance],
30
+ tags: ['openbanking', 'powens', 'job', 'webhook'],
31
+ stability: StabilityEnum.Experimental,
32
+ },
33
+ payload: {
34
+ schema: PowensSyncDispatchPayloadModel,
35
+ },
36
+ retry: {
37
+ maxRetries: 5,
38
+ initialBackoffMs: 30_000,
39
+ maxBackoffMs: 300_000,
40
+ multiplier: 2,
41
+ jitter: true,
42
+ },
43
+ timeoutMs: 60_000,
44
+ });
@@ -1,24 +1,24 @@
1
1
  import { defineFeature } from '@contractspec/lib.contracts-spec';
2
2
 
3
3
  export const OpenbankingPowensFeature = defineFeature({
4
- meta: {
5
- key: 'openbanking-powens',
6
- version: '1.0.0',
7
- title: 'Open Banking - Powens',
8
- description:
9
- 'Powens open banking OAuth callback and webhook handler patterns',
10
- domain: 'integration',
11
- owners: ['@examples'],
12
- tags: ['openbanking', 'powens', 'oauth', 'webhooks'],
13
- stability: 'experimental',
14
- },
4
+ meta: {
5
+ key: 'openbanking-powens',
6
+ version: '1.0.0',
7
+ title: 'Open Banking - Powens',
8
+ description:
9
+ 'Powens open banking OAuth callback and webhook handler patterns',
10
+ domain: 'integration',
11
+ owners: ['@examples'],
12
+ tags: ['openbanking', 'powens', 'oauth', 'webhooks'],
13
+ stability: 'experimental',
14
+ },
15
15
 
16
- integrations: [
17
- { key: 'openbanking-powens.integration.powens', version: '1.0.0' },
18
- ],
16
+ integrations: [
17
+ { key: 'openbanking-powens.integration.powens', version: '1.0.0' },
18
+ ],
19
19
 
20
- docs: [
21
- 'docs.examples.openbanking-powens',
22
- 'docs.examples.openbanking-powens.usage',
23
- ],
20
+ docs: [
21
+ 'docs.examples.openbanking-powens',
22
+ 'docs.examples.openbanking-powens.usage',
23
+ ],
24
24
  });
package/tsconfig.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
- "extends": "@contractspec/tool.typescript/react-library.json",
3
- "include": ["src"],
4
- "exclude": ["node_modules", "dist"],
5
- "compilerOptions": {
6
- "rootDir": "src",
7
- "outDir": "dist"
8
- }
2
+ "extends": "@contractspec/tool.typescript/react-library.json",
3
+ "include": ["src"],
4
+ "exclude": ["node_modules", "dist"],
5
+ "compilerOptions": {
6
+ "rootDir": "src",
7
+ "outDir": "dist"
8
+ }
9
9
  }
10
-
11
-
package/tsdown.config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineConfig, moduleLibrary } from '@contractspec/tool.bun';
2
2
 
3
3
  export default defineConfig(() => ({
4
- ...moduleLibrary,
4
+ ...moduleLibrary,
5
5
  }));