@shipfox/api-integration-github-dto 9.0.1 → 12.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: 5 files with swc (131.17ms)
2
+ Successfully compiled: 5 files with swc (215.58ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @shipfox/api-integration-github-dto
2
2
 
3
+ ## 12.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 869a792: Refresh source-backed project repository identity from GitHub repository and installation-repository events.
8
+ - Updated dependencies [f13e8bb]
9
+ - Updated dependencies [869a792]
10
+ - Updated dependencies [032d316]
11
+ - Updated dependencies [54c820e]
12
+ - Updated dependencies [cb0abfa]
13
+ - @shipfox/api-integration-core-dto@12.0.0
14
+
15
+ ## 9.0.2
16
+
17
+ ### Patch Changes
18
+
19
+ - 4b85404: Adds versioned architecture identity to participating package artifacts during publication.
20
+ - Updated dependencies [4b85404]
21
+ - @shipfox/api-integration-core-dto@9.0.2
22
+
3
23
  ## 9.0.1
4
24
 
5
25
  ### Patch Changes
@@ -21,6 +21,36 @@ export declare const githubWebhookInstallationSchema: z.ZodObject<{
21
21
  }, z.core.$strip>>;
22
22
  }, z.core.$strip>;
23
23
  export type GithubWebhookInstallationDto = z.infer<typeof githubWebhookInstallationSchema>;
24
+ export declare const githubRepositoryRenamedPayloadSchema: z.ZodObject<{
25
+ repository: z.ZodObject<{
26
+ id: z.ZodNumber;
27
+ name: z.ZodString;
28
+ owner: z.ZodObject<{
29
+ login: z.ZodString;
30
+ }, z.core.$strip>;
31
+ default_branch: z.ZodString;
32
+ }, z.core.$strip>;
33
+ }, z.core.$strip>;
34
+ export type GithubRepositoryRenamedPayloadDto = z.infer<typeof githubRepositoryRenamedPayloadSchema>;
35
+ export declare const githubInstallationRepositoriesPayloadSchema: z.ZodObject<{
36
+ repositories_added: z.ZodArray<z.ZodObject<{
37
+ id: z.ZodNumber;
38
+ name: z.ZodString;
39
+ owner: z.ZodObject<{
40
+ login: z.ZodString;
41
+ }, z.core.$strip>;
42
+ default_branch: z.ZodString;
43
+ }, z.core.$strip>>;
44
+ repositories_removed: z.ZodArray<z.ZodObject<{
45
+ id: z.ZodNumber;
46
+ name: z.ZodString;
47
+ owner: z.ZodObject<{
48
+ login: z.ZodString;
49
+ }, z.core.$strip>;
50
+ default_branch: z.ZodString;
51
+ }, z.core.$strip>>;
52
+ }, z.core.$strip>;
53
+ export type GithubInstallationRepositoriesPayloadDto = z.infer<typeof githubInstallationRepositoriesPayloadSchema>;
24
54
  export declare const githubWebhookEnvelopeSchema: z.ZodObject<{
25
55
  action: z.ZodOptional<z.ZodString>;
26
56
  installation: z.ZodOptional<z.ZodObject<{
@@ -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,uBAAuB;;;;;;;;;;iBAQlC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,+BAA+B;;;;iBAE1C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAE3F,eAAO,MAAM,2BAA2B;;;;;iBAEvC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,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,uBAAuB;;;;;;;;;;iBAQlC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,+BAA+B;;;;iBAE1C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAS3F,eAAO,MAAM,oCAAoC;;;;;;;;;iBAE/C,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;iBAGtD,CAAC;AACH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,2CAA2C,CACnD,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;iBAEvC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -18,6 +18,21 @@ export const githubWebhookInstallationSchema = z.object({
18
18
  id: z.number().int().positive()
19
19
  }).optional()
20
20
  });
21
+ const githubWebhookRepositorySchema = z.object({
22
+ id: z.number().int().positive(),
23
+ name: z.string().min(1),
24
+ owner: z.object({
25
+ login: z.string().min(1)
26
+ }),
27
+ default_branch: z.string().min(1)
28
+ });
29
+ export const githubRepositoryRenamedPayloadSchema = z.object({
30
+ repository: githubWebhookRepositorySchema
31
+ });
32
+ export const githubInstallationRepositoriesPayloadSchema = z.object({
33
+ repositories_added: z.array(githubWebhookRepositorySchema),
34
+ repositories_removed: z.array(githubWebhookRepositorySchema)
35
+ });
21
36
  export const githubWebhookEnvelopeSchema = githubWebhookActionSchema.merge(githubWebhookInstallationSchema);
22
37
 
23
38
  //# sourceMappingURL=webhooks.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/webhooks.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const githubPushPayloadSchema = z.object({\n ref: z.string().min(1),\n after: z.string().min(1),\n repository: z.object({\n id: z.number().int().positive(),\n default_branch: z.string().min(1),\n }),\n installation: z.object({id: z.number().int().positive()}).optional(),\n});\nexport type GithubPushPayloadDto = z.infer<typeof githubPushPayloadSchema>;\n\nexport const githubWebhookActionSchema = z.object({\n action: z.string().min(1).optional(),\n});\nexport type GithubWebhookActionDto = z.infer<typeof githubWebhookActionSchema>;\n\nexport const githubWebhookInstallationSchema = z.object({\n installation: z.object({id: z.number().int().positive()}).optional(),\n});\nexport type GithubWebhookInstallationDto = z.infer<typeof githubWebhookInstallationSchema>;\n\nexport const githubWebhookEnvelopeSchema = githubWebhookActionSchema.merge(\n githubWebhookInstallationSchema,\n);\nexport type GithubWebhookEnvelopeDto = z.infer<typeof githubWebhookEnvelopeSchema>;\n"],"names":["z","githubPushPayloadSchema","object","ref","string","min","after","repository","id","number","int","positive","default_branch","installation","optional","githubWebhookActionSchema","action","githubWebhookInstallationSchema","githubWebhookEnvelopeSchema","merge"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,0BAA0BD,EAAEE,MAAM,CAAC;IAC9CC,KAAKH,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACpBC,OAAON,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACtBE,YAAYP,EAAEE,MAAM,CAAC;QACnBM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;QAC7BC,gBAAgBZ,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACjC;IACAQ,cAAcb,EAAEE,MAAM,CAAC;QAACM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IAAE,GAAGG,QAAQ;AACpE,GAAG;AAGH,OAAO,MAAMC,4BAA4Bf,EAAEE,MAAM,CAAC;IAChDc,QAAQhB,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGS,QAAQ;AACpC,GAAG;AAGH,OAAO,MAAMG,kCAAkCjB,EAAEE,MAAM,CAAC;IACtDW,cAAcb,EAAEE,MAAM,CAAC;QAACM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IAAE,GAAGG,QAAQ;AACpE,GAAG;AAGH,OAAO,MAAMI,8BAA8BH,0BAA0BI,KAAK,CACxEF,iCACA"}
1
+ {"version":3,"sources":["../../src/schemas/webhooks.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const githubPushPayloadSchema = z.object({\n ref: z.string().min(1),\n after: z.string().min(1),\n repository: z.object({\n id: z.number().int().positive(),\n default_branch: z.string().min(1),\n }),\n installation: z.object({id: z.number().int().positive()}).optional(),\n});\nexport type GithubPushPayloadDto = z.infer<typeof githubPushPayloadSchema>;\n\nexport const githubWebhookActionSchema = z.object({\n action: z.string().min(1).optional(),\n});\nexport type GithubWebhookActionDto = z.infer<typeof githubWebhookActionSchema>;\n\nexport const githubWebhookInstallationSchema = z.object({\n installation: z.object({id: z.number().int().positive()}).optional(),\n});\nexport type GithubWebhookInstallationDto = z.infer<typeof githubWebhookInstallationSchema>;\n\nconst githubWebhookRepositorySchema = z.object({\n id: z.number().int().positive(),\n name: z.string().min(1),\n owner: z.object({login: z.string().min(1)}),\n default_branch: z.string().min(1),\n});\n\nexport const githubRepositoryRenamedPayloadSchema = z.object({\n repository: githubWebhookRepositorySchema,\n});\nexport type GithubRepositoryRenamedPayloadDto = z.infer<\n typeof githubRepositoryRenamedPayloadSchema\n>;\n\nexport const githubInstallationRepositoriesPayloadSchema = z.object({\n repositories_added: z.array(githubWebhookRepositorySchema),\n repositories_removed: z.array(githubWebhookRepositorySchema),\n});\nexport type GithubInstallationRepositoriesPayloadDto = z.infer<\n typeof githubInstallationRepositoriesPayloadSchema\n>;\n\nexport const githubWebhookEnvelopeSchema = githubWebhookActionSchema.merge(\n githubWebhookInstallationSchema,\n);\nexport type GithubWebhookEnvelopeDto = z.infer<typeof githubWebhookEnvelopeSchema>;\n"],"names":["z","githubPushPayloadSchema","object","ref","string","min","after","repository","id","number","int","positive","default_branch","installation","optional","githubWebhookActionSchema","action","githubWebhookInstallationSchema","githubWebhookRepositorySchema","name","owner","login","githubRepositoryRenamedPayloadSchema","githubInstallationRepositoriesPayloadSchema","repositories_added","array","repositories_removed","githubWebhookEnvelopeSchema","merge"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,0BAA0BD,EAAEE,MAAM,CAAC;IAC9CC,KAAKH,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACpBC,OAAON,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACtBE,YAAYP,EAAEE,MAAM,CAAC;QACnBM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;QAC7BC,gBAAgBZ,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACjC;IACAQ,cAAcb,EAAEE,MAAM,CAAC;QAACM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IAAE,GAAGG,QAAQ;AACpE,GAAG;AAGH,OAAO,MAAMC,4BAA4Bf,EAAEE,MAAM,CAAC;IAChDc,QAAQhB,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGS,QAAQ;AACpC,GAAG;AAGH,OAAO,MAAMG,kCAAkCjB,EAAEE,MAAM,CAAC;IACtDW,cAAcb,EAAEE,MAAM,CAAC;QAACM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IAAE,GAAGG,QAAQ;AACpE,GAAG;AAGH,MAAMI,gCAAgClB,EAAEE,MAAM,CAAC;IAC7CM,IAAIR,EAAES,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IAC7BQ,MAAMnB,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACrBe,OAAOpB,EAAEE,MAAM,CAAC;QAACmB,OAAOrB,EAAEI,MAAM,GAAGC,GAAG,CAAC;IAAE;IACzCO,gBAAgBZ,EAAEI,MAAM,GAAGC,GAAG,CAAC;AACjC;AAEA,OAAO,MAAMiB,uCAAuCtB,EAAEE,MAAM,CAAC;IAC3DK,YAAYW;AACd,GAAG;AAKH,OAAO,MAAMK,8CAA8CvB,EAAEE,MAAM,CAAC;IAClEsB,oBAAoBxB,EAAEyB,KAAK,CAACP;IAC5BQ,sBAAsB1B,EAAEyB,KAAK,CAACP;AAChC,GAAG;AAKH,OAAO,MAAMS,8BAA8BZ,0BAA0Ba,KAAK,CACxEX,iCACA"}