@shipfox/api-integration-gitea-dto 12.0.0 → 14.0.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.
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 4 files with swc (194.76ms)
2
+ Successfully compiled: 5 files with swc (229.33ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @shipfox/api-integration-gitea-dto
2
2
 
3
+ ## 14.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1b71a66: Exposes each provider's event catalog and the fixed-event providers on the integration validation context. Every provider now refuses the reserved `manual` and `cron` connection slugs.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [18e9bad]
12
+ - Updated dependencies [c44641f]
13
+ - Updated dependencies [1b71a66]
14
+ - @shipfox/api-integration-core-dto@14.0.0
15
+
16
+ ## 12.2.0
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [7901a60]
21
+ - @shipfox/api-integration-core-dto@12.2.0
22
+
3
23
  ## 12.0.0
4
24
 
5
25
  ### Patch Changes
@@ -0,0 +1,10 @@
1
+ export declare const giteaEventCatalog: {
2
+ readonly provider: 'Gitea';
3
+ readonly events: {
4
+ summary: 'A Gitea repository receives one or more commits.';
5
+ emittedWhen: 'Gitea sends a push webhook for the connected organization.';
6
+ name: "push";
7
+ payloadKind: 'raw-provider';
8
+ }[];
9
+ };
10
+ //# sourceMappingURL=event-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-catalog.d.ts","sourceRoot":"","sources":["../src/event-catalog.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,iBAAiB;uBAClB,OAAO;;iBAZN,kDAAkD;qBAC9C,4DAA4D;;qBAe5D,cAAc;;CAEa,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { giteaWebhookEventNames } from './schemas/index.js';
2
+ const eventDetails = {
3
+ push: {
4
+ summary: 'A Gitea repository receives one or more commits.',
5
+ emittedWhen: 'Gitea sends a push webhook for the connected organization.'
6
+ }
7
+ };
8
+ export const giteaEventCatalog = {
9
+ provider: 'Gitea',
10
+ events: giteaWebhookEventNames.map((name)=>({
11
+ name,
12
+ ...eventDetails[name],
13
+ payloadKind: 'raw-provider'
14
+ }))
15
+ };
16
+
17
+ //# sourceMappingURL=event-catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/event-catalog.ts"],"sourcesContent":["import type {IntegrationEventCatalog} from '@shipfox/api-integration-core-dto';\nimport {giteaWebhookEventNames} from './schemas/index.js';\n\nconst eventDetails = {\n push: {\n summary: 'A Gitea repository receives one or more commits.',\n emittedWhen: 'Gitea sends a push webhook for the connected organization.',\n },\n} as const satisfies Record<\n (typeof giteaWebhookEventNames)[number],\n {\n summary: string;\n emittedWhen: string;\n }\n>;\n\nexport const giteaEventCatalog = {\n provider: 'Gitea',\n events: giteaWebhookEventNames.map((name) => ({\n name,\n ...eventDetails[name],\n payloadKind: 'raw-provider' as const,\n })),\n} as const satisfies IntegrationEventCatalog;\n"],"names":["giteaWebhookEventNames","eventDetails","push","summary","emittedWhen","giteaEventCatalog","provider","events","map","name","payloadKind"],"mappings":"AACA,SAAQA,sBAAsB,QAAO,qBAAqB;AAE1D,MAAMC,eAAe;IACnBC,MAAM;QACJC,SAAS;QACTC,aAAa;IACf;AACF;AAQA,OAAO,MAAMC,oBAAoB;IAC/BC,UAAU;IACVC,QAAQP,uBAAuBQ,GAAG,CAAC,CAACC,OAAU,CAAA;YAC5CA;YACA,GAAGR,YAAY,CAACQ,KAAK;YACrBC,aAAa;QACf,CAAA;AACF,EAA6C"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './event-catalog.js';
1
2
  export * from './schemas/index.js';
2
3
  export declare const giteaProviderKind = "gitea";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,eAAO,MAAM,iBAAiB,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AAEnC,eAAO,MAAM,iBAAiB,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './event-catalog.js';
1
2
  export * from './schemas/index.js';
2
3
  export const giteaProviderKind = 'gitea';
3
4
 
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './schemas/index.js';\n\nexport const giteaProviderKind = 'gitea';\n"],"names":["giteaProviderKind"],"mappings":"AAAA,cAAc,qBAAqB;AAEnC,OAAO,MAAMA,oBAAoB,QAAQ"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './event-catalog.js';\nexport * from './schemas/index.js';\n\nexport const giteaProviderKind = 'gitea';\n"],"names":["giteaProviderKind"],"mappings":"AAAA,cAAc,qBAAqB;AACnC,cAAc,qBAAqB;AAEnC,OAAO,MAAMA,oBAAoB,QAAQ"}
@@ -12,13 +12,13 @@ export declare const createGiteaConnectionResponseSchema: z.ZodObject<{
12
12
  slug: z.ZodString;
13
13
  display_name: z.ZodString;
14
14
  lifecycle_status: z.ZodEnum<{
15
- error: "error";
16
15
  active: "active";
17
16
  disabled: "disabled";
17
+ error: "error";
18
18
  }>;
19
19
  capabilities: z.ZodArray<z.ZodEnum<{
20
- source_control: "source_control";
21
20
  agent_tools: "agent_tools";
21
+ source_control: "source_control";
22
22
  }>>;
23
23
  external_url: z.ZodOptional<z.ZodString>;
24
24
  created_at: z.ZodString;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export declare const giteaWebhookEventNames: readonly ['push'];
2
3
  export declare const giteaPushPayloadSchema: z.ZodObject<{
3
4
  ref: z.ZodString;
4
5
  after: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/schemas/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;iBASjC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/schemas/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,sBAAsB,YAAI,MAAM,CAAU,CAAC;AAExD,eAAO,MAAM,sBAAsB;;;;;;;;;;;iBASjC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,4 +1,7 @@
1
1
  import { z } from 'zod';
2
+ export const giteaWebhookEventNames = [
3
+ 'push'
4
+ ];
2
5
  export const giteaPushPayloadSchema = z.object({
3
6
  ref: z.string().min(1),
4
7
  after: z.string().min(1),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/webhooks.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const giteaPushPayloadSchema = z.object({\n ref: z.string().min(1),\n after: z.string().min(1),\n repository: z.object({\n name: z.string().min(1),\n full_name: z.string().min(1),\n default_branch: z.string().min(1),\n owner: z.object({username: z.string().min(1)}),\n }),\n});\nexport type GiteaPushPayloadDto = z.infer<typeof giteaPushPayloadSchema>;\n"],"names":["z","giteaPushPayloadSchema","object","ref","string","min","after","repository","name","full_name","default_branch","owner","username"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,yBAAyBD,EAAEE,MAAM,CAAC;IAC7CC,KAAKH,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACpBC,OAAON,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACtBE,YAAYP,EAAEE,MAAM,CAAC;QACnBM,MAAMR,EAAEI,MAAM,GAAGC,GAAG,CAAC;QACrBI,WAAWT,EAAEI,MAAM,GAAGC,GAAG,CAAC;QAC1BK,gBAAgBV,EAAEI,MAAM,GAAGC,GAAG,CAAC;QAC/BM,OAAOX,EAAEE,MAAM,CAAC;YAACU,UAAUZ,EAAEI,MAAM,GAAGC,GAAG,CAAC;QAAE;IAC9C;AACF,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/webhooks.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const giteaWebhookEventNames = ['push'] as const;\n\nexport const giteaPushPayloadSchema = z.object({\n ref: z.string().min(1),\n after: z.string().min(1),\n repository: z.object({\n name: z.string().min(1),\n full_name: z.string().min(1),\n default_branch: z.string().min(1),\n owner: z.object({username: z.string().min(1)}),\n }),\n});\nexport type GiteaPushPayloadDto = z.infer<typeof giteaPushPayloadSchema>;\n"],"names":["z","giteaWebhookEventNames","giteaPushPayloadSchema","object","ref","string","min","after","repository","name","full_name","default_branch","owner","username"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,yBAAyB;IAAC;CAAO,CAAU;AAExD,OAAO,MAAMC,yBAAyBF,EAAEG,MAAM,CAAC;IAC7CC,KAAKJ,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACpBC,OAAOP,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACtBE,YAAYR,EAAEG,MAAM,CAAC;QACnBM,MAAMT,EAAEK,MAAM,GAAGC,GAAG,CAAC;QACrBI,WAAWV,EAAEK,MAAM,GAAGC,GAAG,CAAC;QAC1BK,gBAAgBX,EAAEK,MAAM,GAAGC,GAAG,CAAC;QAC/BM,OAAOZ,EAAEG,MAAM,CAAC;YAACU,UAAUb,EAAEK,MAAM,GAAGC,GAAG,CAAC;QAAE;IAC9C;AACF,GAAG"}