@webiny/project-aws 6.0.0 → 6.1.0-beta.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.
Files changed (65) hide show
  1. package/_templates/appTemplates/api/graphql/package.json +3 -5
  2. package/_templates/appTemplates/api/graphql/src/index.ts +2 -0
  3. package/_templates/extensions/OpenSearch/api/graphql/src/index.ts +6 -4
  4. package/_templates/extensions/OpenSearch/coreDdbToEsHandler/dynamoToElastic/src/index.ts +6 -7
  5. package/abstractions/services/ApiStackOutputService.d.ts +0 -1
  6. package/abstractions/services/ApiStackOutputService.js.map +1 -1
  7. package/admin.d.ts +4 -16
  8. package/api.d.ts +4 -16
  9. package/apps/createApiApp.d.ts +0 -3
  10. package/cli.d.ts +2 -6
  11. package/exports/{infra/index.d.ts → infra.d.ts} +1 -1
  12. package/exports/{infra/index.js → infra.js} +2 -2
  13. package/exports/{infra/index.js.map → infra.js.map} +1 -1
  14. package/extensions/ApiLambdaFunction.d.ts +3 -9
  15. package/extensions/AwsDefaultRegion.d.ts +1 -5
  16. package/extensions/OpenSearch.d.ts +1 -11
  17. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js +4 -0
  18. package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js.map +1 -1
  19. package/extensions/ProjectAws/AutoInstall.d.ts +2 -26
  20. package/extensions/ProjectAws/BuildAppWorkspace.js +1 -1
  21. package/extensions/ProjectAws/BuildAppWorkspace.js.map +1 -1
  22. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.d.ts +10 -0
  23. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js +40 -0
  24. package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js.map +1 -0
  25. package/extensions/ProjectAws.js +3 -2
  26. package/extensions/ProjectAws.js.map +1 -1
  27. package/infra.d.ts +80 -348
  28. package/infra.js +5 -1
  29. package/infra.js.map +1 -1
  30. package/package.json +16 -18
  31. package/project.d.ts +10 -116
  32. package/pulumi/apps/api/ApiOutput.d.ts +0 -1
  33. package/pulumi/apps/api/ApiOutput.js +0 -1
  34. package/pulumi/apps/api/ApiOutput.js.map +1 -1
  35. package/pulumi/apps/api/createApiPulumiApp.d.ts +0 -3
  36. package/pulumi/apps/api/createApiPulumiApp.js +1 -4
  37. package/pulumi/apps/api/createApiPulumiApp.js.map +1 -1
  38. package/pulumi/apps/api/index.d.ts +0 -1
  39. package/pulumi/apps/api/index.js +0 -1
  40. package/pulumi/apps/api/index.js.map +1 -1
  41. package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.d.ts +6 -6
  42. package/pulumi/extensions/AdminCustomDomains.d.ts +6 -11
  43. package/pulumi/extensions/AwsTags.d.ts +1 -5
  44. package/pulumi/extensions/AwsTags.js +1 -1
  45. package/pulumi/extensions/AwsTags.js.map +1 -1
  46. package/pulumi/extensions/BlueGreenDeployments.d.ts +17 -115
  47. package/pulumi/extensions/BlueGreenDeployments.js +7 -4
  48. package/pulumi/extensions/BlueGreenDeployments.js.map +1 -1
  49. package/pulumi/extensions/OpenSearch.d.ts +1 -11
  50. package/pulumi/extensions/Vpc.d.ts +8 -64
  51. package/pulumi/extensions/index.d.ts +29 -187
  52. package/pulumi/types.d.ts +0 -1
  53. package/pulumi/types.js.map +1 -1
  54. package/utils/getTemplatesFolderPath.js +2 -2
  55. package/utils/getTemplatesFolderPath.js.map +1 -1
  56. package/_templates/appTemplates/api/migration/src/index.ts +0 -23
  57. package/_templates/appTemplates/api/migration/tsconfig.json +0 -6
  58. package/_templates/appTemplates/api/migration/webiny.config.ts +0 -8
  59. package/_templates/extensions/OpenSearch/api/migration/src/index.ts +0 -33
  60. package/extensions/ProjectAws/ExecuteDataMigrations.d.ts +0 -16
  61. package/extensions/ProjectAws/ExecuteDataMigrations.js +0 -69
  62. package/extensions/ProjectAws/ExecuteDataMigrations.js.map +0 -1
  63. package/pulumi/apps/api/ApiMigration.d.ts +0 -5
  64. package/pulumi/apps/api/ApiMigration.js +0 -82
  65. package/pulumi/apps/api/ApiMigration.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["z","defineExtension","domainsSchema","object","acmCertificateArn","string","sslSupportMethod","enum","domains","api","array","nonempty","admin","website","preview","deploymentSchema","name","env","variant","deploymentsSchema","tuple","BlueGreenDeployments","type","tags","runtimeContext","description","paramsSchema","enabled","boolean","default","deployments"],"sources":["BlueGreenDeployments.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\n\nconst domainsSchema = z.object({\n acmCertificateArn: z.string(),\n sslSupportMethod: z.enum([\"sni-only\", \"vip\"]),\n domains: z.object({\n api: z.array(z.string()).nonempty(),\n admin: z.array(z.string()).nonempty(),\n website: z.array(z.string()).nonempty(),\n preview: z.array(z.string()).nonempty()\n })\n});\n\nconst deploymentSchema = z.object({\n name: z.string(),\n env: z.string(),\n variant: z.string()\n});\n\n// Tuple: exactly 2 items, both must match DeploymentSchema\nexport const deploymentsSchema = z.tuple([deploymentSchema, deploymentSchema]);\n\nexport const BlueGreenDeployments = defineExtension({\n type: \"Infra/BlueGreenDeployments\",\n tags: { runtimeContext: \"project\" },\n description: \"Enable blue/green deployments for your Webiny project.\",\n paramsSchema: z.object({\n enabled: z.boolean().default(false),\n domains: domainsSchema,\n deployments: deploymentsSchema\n })\n});\n"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AACvB,SAASC,eAAe,QAAQ,0CAA0C;AAE1E,MAAMC,aAAa,GAAGF,CAAC,CAACG,MAAM,CAAC;EAC3BC,iBAAiB,EAAEJ,CAAC,CAACK,MAAM,CAAC,CAAC;EAC7BC,gBAAgB,EAAEN,CAAC,CAACO,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;EAC7CC,OAAO,EAAER,CAAC,CAACG,MAAM,CAAC;IACdM,GAAG,EAAET,CAAC,CAACU,KAAK,CAACV,CAAC,CAACK,MAAM,CAAC,CAAC,CAAC,CAACM,QAAQ,CAAC,CAAC;IACnCC,KAAK,EAAEZ,CAAC,CAACU,KAAK,CAACV,CAAC,CAACK,MAAM,CAAC,CAAC,CAAC,CAACM,QAAQ,CAAC,CAAC;IACrCE,OAAO,EAAEb,CAAC,CAACU,KAAK,CAACV,CAAC,CAACK,MAAM,CAAC,CAAC,CAAC,CAACM,QAAQ,CAAC,CAAC;IACvCG,OAAO,EAAEd,CAAC,CAACU,KAAK,CAACV,CAAC,CAACK,MAAM,CAAC,CAAC,CAAC,CAACM,QAAQ,CAAC;EAC1C,CAAC;AACL,CAAC,CAAC;AAEF,MAAMI,gBAAgB,GAAGf,CAAC,CAACG,MAAM,CAAC;EAC9Ba,IAAI,EAAEhB,CAAC,CAACK,MAAM,CAAC,CAAC;EAChBY,GAAG,EAAEjB,CAAC,CAACK,MAAM,CAAC,CAAC;EACfa,OAAO,EAAElB,CAAC,CAACK,MAAM,CAAC;AACtB,CAAC,CAAC;;AAEF;AACA,OAAO,MAAMc,iBAAiB,GAAGnB,CAAC,CAACoB,KAAK,CAAC,CAACL,gBAAgB,EAAEA,gBAAgB,CAAC,CAAC;AAE9E,OAAO,MAAMM,oBAAoB,GAAGpB,eAAe,CAAC;EAChDqB,IAAI,EAAE,4BAA4B;EAClCC,IAAI,EAAE;IAAEC,cAAc,EAAE;EAAU,CAAC;EACnCC,WAAW,EAAE,wDAAwD;EACrEC,YAAY,EAAE1B,CAAC,CAACG,MAAM,CAAC;IACnBwB,OAAO,EAAE3B,CAAC,CAAC4B,OAAO,CAAC,CAAC,CAACC,OAAO,CAAC,KAAK,CAAC;IACnCrB,OAAO,EAAEN,aAAa;IACtB4B,WAAW,EAAEX;EACjB,CAAC;AACL,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["z","defineExtension","nonEmptyStringArray","array","string","nonempty","transform","item","domainsSchema","object","acmCertificateArn","sslSupportMethod","enum","domains","api","admin","website","preview","deploymentSchema","name","env","variant","deploymentsSchema","tuple","BlueGreenDeployments","type","tags","runtimeContext","description","paramsSchema","enabled","boolean","default","deployments"],"sources":["BlueGreenDeployments.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport type { NonEmptyArray } from \"../apps/blueGreen/types.js\";\n\nconst nonEmptyStringArray = z\n .array(z.string())\n .nonempty()\n .transform(item => {\n return item as NonEmptyArray<string>;\n });\n\nconst domainsSchema = z.object({\n acmCertificateArn: z.string(),\n sslSupportMethod: z.enum([\"sni-only\", \"vip\"]),\n domains: z.object({\n api: nonEmptyStringArray,\n admin: nonEmptyStringArray,\n website: nonEmptyStringArray,\n preview: nonEmptyStringArray\n })\n});\n\nconst deploymentSchema = z.object({\n name: z.string(),\n env: z.string(),\n variant: z.string()\n});\n\n// Tuple: exactly 2 items, both must match DeploymentSchema\nexport const deploymentsSchema = z.tuple([deploymentSchema, deploymentSchema]);\n\nexport const BlueGreenDeployments = defineExtension({\n type: \"Infra/BlueGreenDeployments\",\n tags: { runtimeContext: \"project\" },\n description: \"Enable blue/green deployments for your Webiny project.\",\n paramsSchema: z.object({\n enabled: z.boolean().default(false),\n domains: domainsSchema,\n deployments: deploymentsSchema\n })\n});\n"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AACvB,SAASC,eAAe,QAAQ,0CAA0C;AAG1E,MAAMC,mBAAmB,GAAGF,CAAC,CACxBG,KAAK,CAACH,CAAC,CAACI,MAAM,CAAC,CAAC,CAAC,CACjBC,QAAQ,CAAC,CAAC,CACVC,SAAS,CAACC,IAAI,IAAI;EACf,OAAOA,IAAI;AACf,CAAC,CAAC;AAEN,MAAMC,aAAa,GAAGR,CAAC,CAACS,MAAM,CAAC;EAC3BC,iBAAiB,EAAEV,CAAC,CAACI,MAAM,CAAC,CAAC;EAC7BO,gBAAgB,EAAEX,CAAC,CAACY,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;EAC7CC,OAAO,EAAEb,CAAC,CAACS,MAAM,CAAC;IACdK,GAAG,EAAEZ,mBAAmB;IACxBa,KAAK,EAAEb,mBAAmB;IAC1Bc,OAAO,EAAEd,mBAAmB;IAC5Be,OAAO,EAAEf;EACb,CAAC;AACL,CAAC,CAAC;AAEF,MAAMgB,gBAAgB,GAAGlB,CAAC,CAACS,MAAM,CAAC;EAC9BU,IAAI,EAAEnB,CAAC,CAACI,MAAM,CAAC,CAAC;EAChBgB,GAAG,EAAEpB,CAAC,CAACI,MAAM,CAAC,CAAC;EACfiB,OAAO,EAAErB,CAAC,CAACI,MAAM,CAAC;AACtB,CAAC,CAAC;;AAEF;AACA,OAAO,MAAMkB,iBAAiB,GAAGtB,CAAC,CAACuB,KAAK,CAAC,CAACL,gBAAgB,EAAEA,gBAAgB,CAAC,CAAC;AAE9E,OAAO,MAAMM,oBAAoB,GAAGvB,eAAe,CAAC;EAChDwB,IAAI,EAAE,4BAA4B;EAClCC,IAAI,EAAE;IAAEC,cAAc,EAAE;EAAU,CAAC;EACnCC,WAAW,EAAE,wDAAwD;EACrEC,YAAY,EAAE7B,CAAC,CAACS,MAAM,CAAC;IACnBqB,OAAO,EAAE9B,CAAC,CAAC+B,OAAO,CAAC,CAAC,CAACC,OAAO,CAAC,KAAK,CAAC;IACnCnB,OAAO,EAAEL,aAAa;IACtByB,WAAW,EAAEX;EACjB,CAAC;AACL,CAAC,CAAC","ignoreList":[]}
@@ -4,14 +4,4 @@ export declare const OpenSearch: import("@webiny/project/defineExtension/defineE
4
4
  domainName: z.ZodOptional<z.ZodString>;
5
5
  indexPrefix: z.ZodOptional<z.ZodString>;
6
6
  sharedIndexes: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
- }, "strip", z.ZodTypeAny, {
8
- enabled?: boolean | undefined;
9
- domainName?: string | undefined;
10
- indexPrefix?: string | undefined;
11
- sharedIndexes?: boolean | undefined;
12
- }, {
13
- enabled?: boolean | undefined;
14
- domainName?: string | undefined;
15
- indexPrefix?: string | undefined;
16
- sharedIndexes?: boolean | undefined;
17
- }>>;
7
+ }, z.core.$strip>>;
@@ -4,68 +4,12 @@ export declare const Vpc: import("@webiny/project/defineExtension/defineExtensio
4
4
  useVpcEndpoints: z.ZodOptional<z.ZodBoolean>;
5
5
  useExistingVpc: z.ZodOptional<z.ZodObject<{
6
6
  openSearchDomainVpcConfig: z.ZodOptional<z.ZodObject<{
7
- securityGroupIds: z.ZodArray<z.ZodString, "many">;
8
- subnetIds: z.ZodArray<z.ZodString, "many">;
9
- }, "strip", z.ZodTypeAny, {
10
- securityGroupIds: string[];
11
- subnetIds: string[];
12
- }, {
13
- securityGroupIds: string[];
14
- subnetIds: string[];
15
- }>>;
7
+ securityGroupIds: z.ZodArray<z.ZodString>;
8
+ subnetIds: z.ZodArray<z.ZodString>;
9
+ }, z.core.$strip>>;
16
10
  lambdaFunctionsVpcConfig: z.ZodObject<{
17
- securityGroupIds: z.ZodArray<z.ZodString, "many">;
18
- subnetIds: z.ZodArray<z.ZodString, "many">;
19
- }, "strip", z.ZodTypeAny, {
20
- securityGroupIds: string[];
21
- subnetIds: string[];
22
- }, {
23
- securityGroupIds: string[];
24
- subnetIds: string[];
25
- }>;
26
- }, "strip", z.ZodTypeAny, {
27
- lambdaFunctionsVpcConfig: {
28
- securityGroupIds: string[];
29
- subnetIds: string[];
30
- };
31
- openSearchDomainVpcConfig?: {
32
- securityGroupIds: string[];
33
- subnetIds: string[];
34
- } | undefined;
35
- }, {
36
- lambdaFunctionsVpcConfig: {
37
- securityGroupIds: string[];
38
- subnetIds: string[];
39
- };
40
- openSearchDomainVpcConfig?: {
41
- securityGroupIds: string[];
42
- subnetIds: string[];
43
- } | undefined;
44
- }>>;
45
- }, "strip", z.ZodTypeAny, {
46
- enabled: boolean;
47
- useVpcEndpoints?: boolean | undefined;
48
- useExistingVpc?: {
49
- lambdaFunctionsVpcConfig: {
50
- securityGroupIds: string[];
51
- subnetIds: string[];
52
- };
53
- openSearchDomainVpcConfig?: {
54
- securityGroupIds: string[];
55
- subnetIds: string[];
56
- } | undefined;
57
- } | undefined;
58
- }, {
59
- enabled?: boolean | undefined;
60
- useVpcEndpoints?: boolean | undefined;
61
- useExistingVpc?: {
62
- lambdaFunctionsVpcConfig: {
63
- securityGroupIds: string[];
64
- subnetIds: string[];
65
- };
66
- openSearchDomainVpcConfig?: {
67
- securityGroupIds: string[];
68
- subnetIds: string[];
69
- } | undefined;
70
- } | undefined;
71
- }>>;
11
+ securityGroupIds: z.ZodArray<z.ZodString>;
12
+ subnetIds: z.ZodArray<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ }, z.core.$strip>>;
15
+ }, z.core.$strip>>;
@@ -10,211 +10,53 @@ export { AdminCustomDomains };
10
10
  export { BlueGreenDeployments };
11
11
  export declare const definitions: (import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
12
12
  tags: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
13
- }, "strip", import("zod").ZodTypeAny, {
14
- tags: Record<string, string>;
15
- }, {
16
- tags: Record<string, string>;
17
- }>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
13
+ }, import("zod/v4/core").$strip>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
18
14
  enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
19
15
  useVpcEndpoints: import("zod").ZodOptional<import("zod").ZodBoolean>;
20
16
  useExistingVpc: import("zod").ZodOptional<import("zod").ZodObject<{
21
17
  openSearchDomainVpcConfig: import("zod").ZodOptional<import("zod").ZodObject<{
22
- securityGroupIds: import("zod").ZodArray<import("zod").ZodString, "many">;
23
- subnetIds: import("zod").ZodArray<import("zod").ZodString, "many">;
24
- }, "strip", import("zod").ZodTypeAny, {
25
- securityGroupIds: string[];
26
- subnetIds: string[];
27
- }, {
28
- securityGroupIds: string[];
29
- subnetIds: string[];
30
- }>>;
18
+ securityGroupIds: import("zod").ZodArray<import("zod").ZodString>;
19
+ subnetIds: import("zod").ZodArray<import("zod").ZodString>;
20
+ }, import("zod/v4/core").$strip>>;
31
21
  lambdaFunctionsVpcConfig: import("zod").ZodObject<{
32
- securityGroupIds: import("zod").ZodArray<import("zod").ZodString, "many">;
33
- subnetIds: import("zod").ZodArray<import("zod").ZodString, "many">;
34
- }, "strip", import("zod").ZodTypeAny, {
35
- securityGroupIds: string[];
36
- subnetIds: string[];
37
- }, {
38
- securityGroupIds: string[];
39
- subnetIds: string[];
40
- }>;
41
- }, "strip", import("zod").ZodTypeAny, {
42
- lambdaFunctionsVpcConfig: {
43
- securityGroupIds: string[];
44
- subnetIds: string[];
45
- };
46
- openSearchDomainVpcConfig?: {
47
- securityGroupIds: string[];
48
- subnetIds: string[];
49
- } | undefined;
50
- }, {
51
- lambdaFunctionsVpcConfig: {
52
- securityGroupIds: string[];
53
- subnetIds: string[];
54
- };
55
- openSearchDomainVpcConfig?: {
56
- securityGroupIds: string[];
57
- subnetIds: string[];
58
- } | undefined;
59
- }>>;
60
- }, "strip", import("zod").ZodTypeAny, {
61
- enabled: boolean;
62
- useVpcEndpoints?: boolean | undefined;
63
- useExistingVpc?: {
64
- lambdaFunctionsVpcConfig: {
65
- securityGroupIds: string[];
66
- subnetIds: string[];
67
- };
68
- openSearchDomainVpcConfig?: {
69
- securityGroupIds: string[];
70
- subnetIds: string[];
71
- } | undefined;
72
- } | undefined;
73
- }, {
74
- enabled?: boolean | undefined;
75
- useVpcEndpoints?: boolean | undefined;
76
- useExistingVpc?: {
77
- lambdaFunctionsVpcConfig: {
78
- securityGroupIds: string[];
79
- subnetIds: string[];
80
- };
81
- openSearchDomainVpcConfig?: {
82
- securityGroupIds: string[];
83
- subnetIds: string[];
84
- } | undefined;
85
- } | undefined;
86
- }>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
22
+ securityGroupIds: import("zod").ZodArray<import("zod").ZodString>;
23
+ subnetIds: import("zod").ZodArray<import("zod").ZodString>;
24
+ }, import("zod/v4/core").$strip>;
25
+ }, import("zod/v4/core").$strip>>;
26
+ }, import("zod/v4/core").$strip>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
87
27
  enabled: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
88
28
  domainName: import("zod").ZodOptional<import("zod").ZodString>;
89
29
  indexPrefix: import("zod").ZodOptional<import("zod").ZodString>;
90
30
  sharedIndexes: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
91
- }, "strip", import("zod").ZodTypeAny, {
92
- enabled?: boolean | undefined;
93
- domainName?: string | undefined;
94
- indexPrefix?: string | undefined;
95
- sharedIndexes?: boolean | undefined;
96
- }, {
97
- enabled?: boolean | undefined;
98
- domainName?: string | undefined;
99
- indexPrefix?: string | undefined;
100
- sharedIndexes?: boolean | undefined;
101
- }>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
102
- domains: import("zod").ZodArray<import("zod").ZodString, "many">;
103
- sslMethod: import("zod").ZodDefault<import("zod").ZodEnum<["sni-only", "vip"]>>;
31
+ }, import("zod/v4/core").$strip>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
32
+ domains: import("zod").ZodArray<import("zod").ZodString>;
33
+ sslMethod: import("zod").ZodDefault<import("zod").ZodEnum<{
34
+ "sni-only": "sni-only";
35
+ vip: "vip";
36
+ }>>;
104
37
  certificateArn: import("zod").ZodString;
105
- }, "strip", import("zod").ZodTypeAny, {
106
- domains: string[];
107
- sslMethod: "sni-only" | "vip";
108
- certificateArn: string;
109
- }, {
110
- domains: string[];
111
- certificateArn: string;
112
- sslMethod?: "sni-only" | "vip" | undefined;
113
- }>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
38
+ }, import("zod/v4/core").$strip>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
114
39
  enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
115
40
  domains: import("zod").ZodObject<{
116
41
  acmCertificateArn: import("zod").ZodString;
117
- sslSupportMethod: import("zod").ZodEnum<["sni-only", "vip"]>;
118
- domains: import("zod").ZodObject<{
119
- api: import("zod").ZodArray<import("zod").ZodString, "atleastone">;
120
- admin: import("zod").ZodArray<import("zod").ZodString, "atleastone">;
121
- website: import("zod").ZodArray<import("zod").ZodString, "atleastone">;
122
- preview: import("zod").ZodArray<import("zod").ZodString, "atleastone">;
123
- }, "strip", import("zod").ZodTypeAny, {
124
- api: [string, ...string[]];
125
- admin: [string, ...string[]];
126
- website: [string, ...string[]];
127
- preview: [string, ...string[]];
128
- }, {
129
- api: [string, ...string[]];
130
- admin: [string, ...string[]];
131
- website: [string, ...string[]];
132
- preview: [string, ...string[]];
42
+ sslSupportMethod: import("zod").ZodEnum<{
43
+ "sni-only": "sni-only";
44
+ vip: "vip";
133
45
  }>;
134
- }, "strip", import("zod").ZodTypeAny, {
135
- domains: {
136
- api: [string, ...string[]];
137
- admin: [string, ...string[]];
138
- website: [string, ...string[]];
139
- preview: [string, ...string[]];
140
- };
141
- acmCertificateArn: string;
142
- sslSupportMethod: "sni-only" | "vip";
143
- }, {
144
- domains: {
145
- api: [string, ...string[]];
146
- admin: [string, ...string[]];
147
- website: [string, ...string[]];
148
- preview: [string, ...string[]];
149
- };
150
- acmCertificateArn: string;
151
- sslSupportMethod: "sni-only" | "vip";
152
- }>;
46
+ domains: import("zod").ZodObject<{
47
+ api: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodTransform<import("../apps/blueGreen/types.js").NonEmptyArray<string>, string[]>>;
48
+ admin: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodTransform<import("../apps/blueGreen/types.js").NonEmptyArray<string>, string[]>>;
49
+ website: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodTransform<import("../apps/blueGreen/types.js").NonEmptyArray<string>, string[]>>;
50
+ preview: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodTransform<import("../apps/blueGreen/types.js").NonEmptyArray<string>, string[]>>;
51
+ }, import("zod/v4/core").$strip>;
52
+ }, import("zod/v4/core").$strip>;
153
53
  deployments: import("zod").ZodTuple<[import("zod").ZodObject<{
154
54
  name: import("zod").ZodString;
155
55
  env: import("zod").ZodString;
156
56
  variant: import("zod").ZodString;
157
- }, "strip", import("zod").ZodTypeAny, {
158
- name: string;
159
- env: string;
160
- variant: string;
161
- }, {
162
- name: string;
163
- env: string;
164
- variant: string;
165
- }>, import("zod").ZodObject<{
57
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
166
58
  name: import("zod").ZodString;
167
59
  env: import("zod").ZodString;
168
60
  variant: import("zod").ZodString;
169
- }, "strip", import("zod").ZodTypeAny, {
170
- name: string;
171
- env: string;
172
- variant: string;
173
- }, {
174
- name: string;
175
- env: string;
176
- variant: string;
177
- }>], null>;
178
- }, "strip", import("zod").ZodTypeAny, {
179
- enabled: boolean;
180
- domains: {
181
- domains: {
182
- api: [string, ...string[]];
183
- admin: [string, ...string[]];
184
- website: [string, ...string[]];
185
- preview: [string, ...string[]];
186
- };
187
- acmCertificateArn: string;
188
- sslSupportMethod: "sni-only" | "vip";
189
- };
190
- deployments: [{
191
- name: string;
192
- env: string;
193
- variant: string;
194
- }, {
195
- name: string;
196
- env: string;
197
- variant: string;
198
- }];
199
- }, {
200
- domains: {
201
- domains: {
202
- api: [string, ...string[]];
203
- admin: [string, ...string[]];
204
- website: [string, ...string[]];
205
- preview: [string, ...string[]];
206
- };
207
- acmCertificateArn: string;
208
- sslSupportMethod: "sni-only" | "vip";
209
- };
210
- deployments: [{
211
- name: string;
212
- env: string;
213
- variant: string;
214
- }, {
215
- name: string;
216
- env: string;
217
- variant: string;
218
- }];
219
- enabled?: boolean | undefined;
220
- }>>)[];
61
+ }, import("zod/v4/core").$strip>], null>;
62
+ }, import("zod/v4/core").$strip>>)[];
package/pulumi/types.d.ts CHANGED
@@ -3,7 +3,6 @@ export interface IDefaultStackOutput extends IStackOutput {
3
3
  deploymentId: string;
4
4
  region: string;
5
5
  dynamoDbTable: string;
6
- migrationLambdaArn: string;
7
6
  iotAuthorizerName: string;
8
7
  apiDomain: string;
9
8
  apiUrl: string;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import { type IStackOutput } from \"@webiny/project\";\n\n// TODO: split into this per-app stack outputs.\nexport interface IDefaultStackOutput extends IStackOutput {\n deploymentId: string;\n region: string;\n dynamoDbTable: string;\n migrationLambdaArn: string;\n iotAuthorizerName: string;\n apiDomain: string;\n apiUrl: string;\n graphqlLambdaRole: string;\n graphqlLambdaRoleName: string;\n fileManagerManageLambdaArn: string;\n fileManagerManageLambdaRole: string;\n fileManagerManageLambdaRoleName: string;\n cognitoUserPoolArn: string;\n cognitoAppClientId: string;\n cognitoUserPoolId: string;\n cognitoUserPoolPasswordPolicy: string;\n websocketApiUrl: string;\n fileManagerBucketId: string;\n fileManagerBucketArn: string;\n primaryDynamodbTableArn: string;\n primaryDynamodbTableName: string;\n primaryDynamodbTableHashKey: string;\n primaryDynamodbTableRangeKey: string;\n eventBusName: string;\n eventBusArn: string;\n vpcPublicSubnetIds: string[] | undefined;\n vpcPrivateSubnetIds: string[] | undefined;\n vpcSecurityGroupIds: string[] | undefined;\n opensearchDomainArn: string | undefined;\n opensearchDomainEndpoint: string | undefined;\n opensearchDynamodbTableHashKey: string;\n opensearchDynamodbTableRangeKey: string;\n opensearchDynamodbTableArn: string | undefined;\n opensearchDynamodbTableName: string | undefined;\n appStorage: string;\n appDomain?: string;\n deliveryDomain?: string;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import { type IStackOutput } from \"@webiny/project\";\n\n// TODO: split into this per-app stack outputs.\nexport interface IDefaultStackOutput extends IStackOutput {\n deploymentId: string;\n region: string;\n dynamoDbTable: string;\n iotAuthorizerName: string;\n apiDomain: string;\n apiUrl: string;\n graphqlLambdaRole: string;\n graphqlLambdaRoleName: string;\n fileManagerManageLambdaArn: string;\n fileManagerManageLambdaRole: string;\n fileManagerManageLambdaRoleName: string;\n cognitoUserPoolArn: string;\n cognitoAppClientId: string;\n cognitoUserPoolId: string;\n cognitoUserPoolPasswordPolicy: string;\n websocketApiUrl: string;\n fileManagerBucketId: string;\n fileManagerBucketArn: string;\n primaryDynamodbTableArn: string;\n primaryDynamodbTableName: string;\n primaryDynamodbTableHashKey: string;\n primaryDynamodbTableRangeKey: string;\n eventBusName: string;\n eventBusArn: string;\n vpcPublicSubnetIds: string[] | undefined;\n vpcPrivateSubnetIds: string[] | undefined;\n vpcSecurityGroupIds: string[] | undefined;\n opensearchDomainArn: string | undefined;\n opensearchDomainEndpoint: string | undefined;\n opensearchDynamodbTableHashKey: string;\n opensearchDynamodbTableRangeKey: string;\n opensearchDynamodbTableArn: string | undefined;\n opensearchDynamodbTableName: string | undefined;\n appStorage: string;\n appDomain?: string;\n deliveryDomain?: string;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,8 +1,8 @@
1
- import findUp from "find-up";
1
+ import { findUpSync } from "find-up";
2
2
  import path from "path";
3
3
  const TEMPLATES_FOLDER_NAME = "_templates";
4
4
  export const getTemplatesFolderPath = () => {
5
- const templatesFolderPath = findUp.sync(TEMPLATES_FOLDER_NAME, {
5
+ const templatesFolderPath = findUpSync(TEMPLATES_FOLDER_NAME, {
6
6
  type: "directory",
7
7
  cwd: path.join(import.meta.dirname)
8
8
  });
@@ -1 +1 @@
1
- {"version":3,"names":["findUp","path","TEMPLATES_FOLDER_NAME","getTemplatesFolderPath","templatesFolderPath","sync","type","cwd","join","import","meta","dirname","Error"],"sources":["getTemplatesFolderPath.ts"],"sourcesContent":["import findUp from \"find-up\";\nimport path from \"path\";\n\nconst TEMPLATES_FOLDER_NAME = \"_templates\";\n\nexport const getTemplatesFolderPath = () => {\n const templatesFolderPath = findUp.sync(TEMPLATES_FOLDER_NAME, {\n type: \"directory\",\n cwd: path.join(import.meta.dirname)\n });\n\n if (!templatesFolderPath) {\n // This should never happen because we're controlling the templates.\n throw new Error(\"Could not find the `appTemplates` folder. Something went terribly wrong.\");\n }\n\n return templatesFolderPath;\n};\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,SAAS;AAC5B,OAAOC,IAAI,MAAM,MAAM;AAEvB,MAAMC,qBAAqB,GAAG,YAAY;AAE1C,OAAO,MAAMC,sBAAsB,GAAGA,CAAA,KAAM;EACxC,MAAMC,mBAAmB,GAAGJ,MAAM,CAACK,IAAI,CAACH,qBAAqB,EAAE;IAC3DI,IAAI,EAAE,WAAW;IACjBC,GAAG,EAAEN,IAAI,CAACO,IAAI,CAACC,MAAM,CAACC,IAAI,CAACC,OAAO;EACtC,CAAC,CAAC;EAEF,IAAI,CAACP,mBAAmB,EAAE;IACtB;IACA,MAAM,IAAIQ,KAAK,CAAC,0EAA0E,CAAC;EAC/F;EAEA,OAAOR,mBAAmB;AAC9B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["findUpSync","path","TEMPLATES_FOLDER_NAME","getTemplatesFolderPath","templatesFolderPath","type","cwd","join","import","meta","dirname","Error"],"sources":["getTemplatesFolderPath.ts"],"sourcesContent":["import { findUpSync } from \"find-up\";\nimport path from \"path\";\n\nconst TEMPLATES_FOLDER_NAME = \"_templates\";\n\nexport const getTemplatesFolderPath = () => {\n const templatesFolderPath = findUpSync(TEMPLATES_FOLDER_NAME, {\n type: \"directory\",\n cwd: path.join(import.meta.dirname)\n });\n\n if (!templatesFolderPath) {\n // This should never happen because we're controlling the templates.\n throw new Error(\"Could not find the `appTemplates` folder. Something went terribly wrong.\");\n }\n\n return templatesFolderPath;\n};\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,SAAS;AACpC,OAAOC,IAAI,MAAM,MAAM;AAEvB,MAAMC,qBAAqB,GAAG,YAAY;AAE1C,OAAO,MAAMC,sBAAsB,GAAGA,CAAA,KAAM;EACxC,MAAMC,mBAAmB,GAAGJ,UAAU,CAACE,qBAAqB,EAAE;IAC1DG,IAAI,EAAE,WAAW;IACjBC,GAAG,EAAEL,IAAI,CAACM,IAAI,CAACC,MAAM,CAACC,IAAI,CAACC,OAAO;EACtC,CAAC,CAAC;EAEF,IAAI,CAACN,mBAAmB,EAAE;IACtB;IACA,MAAM,IAAIO,KAAK,CAAC,0EAA0E,CAAC;EAC/F;EAEA,OAAOP,mBAAmB;AAC9B,CAAC","ignoreList":[]}
@@ -1,23 +0,0 @@
1
- import { createHandler } from "@webiny/handler-aws/raw";
2
- import { createApiCore } from "@webiny/api-core";
3
- import { createApiCoreDdb } from "@webiny/api-core-ddb";
4
- import { createDdbProjectMigration, createTable } from "@webiny/data-migration";
5
- import { getDocumentClient } from "@webiny/aws-sdk/client-dynamodb";
6
- import { migrations } from "@webiny/migrations/ddb";
7
-
8
- const documentClient = getDocumentClient();
9
-
10
- export const handler = createHandler({
11
- plugins: [
12
- createApiCore({
13
- storageOperations: createApiCoreDdb({ documentClient })
14
- }),
15
- createDdbProjectMigration({
16
- primaryTable: createTable({
17
- name: String(process.env.DB_TABLE),
18
- documentClient
19
- }),
20
- migrations: migrations()
21
- })
22
- ]
23
- });
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "../../../../../tsconfig.json",
3
- "compilerOptions": {
4
- "composite": false
5
- }
6
- }
@@ -1,8 +0,0 @@
1
- import { createBuildFunction, createWatchFunction } from "@webiny/build-tools";
2
-
3
- export default {
4
- commands: {
5
- build: createBuildFunction({ cwd: import.meta.dirname }),
6
- watch: createWatchFunction({ cwd: import.meta.dirname })
7
- }
8
- };
@@ -1,33 +0,0 @@
1
- import { getDocumentClient } from "@webiny/aws-sdk/client-dynamodb";
2
- import { createElasticsearchClient } from "@webiny/api-elasticsearch";
3
- import { createHandler } from "@webiny/handler-aws/raw";
4
- import { createApiCore } from "@webiny/api-core";
5
- import { createApiCoreDdb } from "@webiny/api-core-ddb";
6
- import { createDdbEsProjectMigration, createTable } from "@webiny/data-migration";
7
- import { migrations } from "@webiny/migrations/ddb-es";
8
-
9
- const documentClient = getDocumentClient();
10
-
11
- const elasticsearchClient = createElasticsearchClient({
12
- endpoint: `https://${process.env.OPENSEARCH_ENDPOINT}`
13
- });
14
-
15
- export const handler = createHandler({
16
- plugins: [
17
- createApiCore({
18
- storageOperations: createApiCoreDdb({ documentClient })
19
- }),
20
- createDdbEsProjectMigration({
21
- primaryTable: createTable({
22
- name: String(process.env.DB_TABLE),
23
- documentClient
24
- }),
25
- dynamoToEsTable: createTable({
26
- name: String(process.env.DB_TABLE_OPENSEARCH),
27
- documentClient
28
- }),
29
- elasticsearchClient,
30
- migrations: migrations()
31
- })
32
- ]
33
- });
@@ -1,16 +0,0 @@
1
- import { ApiAfterDeploy, GetProject, UiService } from "@webiny/project/abstractions/index.js";
2
- import { ApiStackOutputService } from "../../abstractions/index.js";
3
- /**
4
- * On every deployment of the API project application, this plugin invokes the data migrations Lambda.
5
- */
6
- declare class ExecuteDataMigrationsImpl implements ApiAfterDeploy.Interface {
7
- private ui;
8
- private apiStackOutputService;
9
- private getProject;
10
- constructor(ui: UiService.Interface, apiStackOutputService: ApiStackOutputService.Interface, getProject: GetProject.Interface);
11
- execute(params: ApiAfterDeploy.Params): Promise<void>;
12
- }
13
- export declare const ExecuteDataMigrations: typeof ExecuteDataMigrationsImpl & {
14
- __abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/index.js").IApiAfterDeploy>;
15
- };
16
- export {};
@@ -1,69 +0,0 @@
1
- import { LambdaClient } from "@webiny/aws-sdk/client-lambda/index.js";
2
- import { CliMigrationRunReporter, InteractiveCliStatusReporter, LogReporter, MigrationRunner, NonInteractiveCliStatusReporter, VoidStatusReporter } from "@webiny/data-migration/cli/index.js";
3
- import { ApiAfterDeploy, GetProject, UiService } from "@webiny/project/abstractions/index.js";
4
- import { ApiStackOutputService } from "../../abstractions/index.js";
5
-
6
- /**
7
- * On every deployment of the API project application, this plugin invokes the data migrations Lambda.
8
- */
9
- class ExecuteDataMigrationsImpl {
10
- constructor(ui, apiStackOutputService, getProject) {
11
- this.ui = ui;
12
- this.apiStackOutputService = apiStackOutputService;
13
- this.getProject = getProject;
14
- }
15
- async execute(params) {
16
- // No need to run migrations if we're doing a preview.
17
- if (params.preview) {
18
- return;
19
- }
20
- const apiOutput = await this.apiStackOutputService.execute();
21
- if (!apiOutput) {
22
- // This should never happen, but just in case...
23
- throw new Error("Could not retrieve the API stack output while trying to run data migrations.");
24
- }
25
- const ui = this.ui;
26
- ui.info("Executing data migrations AWS Lambda function...");
27
- const logStreamingEnabled = process.env.WEBINY_MIGRATION_LOG_STREAMING !== "false";
28
- if (!logStreamingEnabled) {
29
- ui.warning(["Data migration log streaming is disabled.", "Note that the logs will still be accessible in Amazon CloudWatch.", "Learn more: https://webiny.link/cloudwatch"].join(" "));
30
- }
31
- try {
32
- const lambdaClient = new LambdaClient({
33
- region: apiOutput.region
34
- });
35
- const functionName = apiOutput["migrationLambdaArn"];
36
- const logReporter = new LogReporter(functionName);
37
- let statusReporter = new VoidStatusReporter();
38
- if (params.dataMigrationLogStreaming) {
39
- const useNonInteractiveReporter = !process.stdout.isTTY || "CI" in process.env;
40
- statusReporter = useNonInteractiveReporter ? new NonInteractiveCliStatusReporter(logReporter) : new InteractiveCliStatusReporter(logReporter);
41
- }
42
- const runner = MigrationRunner.create({
43
- lambdaClient,
44
- functionName,
45
- statusReporter
46
- });
47
- const project = this.getProject.execute();
48
- const result = await runner.runMigration({
49
- version: process.env.WEBINY_VERSION || project.version
50
- });
51
- if (result) {
52
- const reporter = new CliMigrationRunReporter(logReporter, {
53
- uiService: this.ui
54
- });
55
- await reporter.report(result);
56
- }
57
- } catch (e) {
58
- ui.error(`An error occurred while executing data migrations Lambda function!`);
59
- ui.text(e);
60
- throw e;
61
- }
62
- }
63
- }
64
- export const ExecuteDataMigrations = ApiAfterDeploy.createImplementation({
65
- implementation: ExecuteDataMigrationsImpl,
66
- dependencies: [UiService, ApiStackOutputService, GetProject]
67
- });
68
-
69
- //# sourceMappingURL=ExecuteDataMigrations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["LambdaClient","CliMigrationRunReporter","InteractiveCliStatusReporter","LogReporter","MigrationRunner","NonInteractiveCliStatusReporter","VoidStatusReporter","ApiAfterDeploy","GetProject","UiService","ApiStackOutputService","ExecuteDataMigrationsImpl","constructor","ui","apiStackOutputService","getProject","execute","params","preview","apiOutput","Error","info","logStreamingEnabled","process","env","WEBINY_MIGRATION_LOG_STREAMING","warning","join","lambdaClient","region","functionName","logReporter","statusReporter","dataMigrationLogStreaming","useNonInteractiveReporter","stdout","isTTY","runner","create","project","result","runMigration","version","WEBINY_VERSION","reporter","uiService","report","e","error","text","ExecuteDataMigrations","createImplementation","implementation","dependencies"],"sources":["ExecuteDataMigrations.ts"],"sourcesContent":["import { LambdaClient } from \"@webiny/aws-sdk/client-lambda/index.js\";\nimport type { MigrationStatusReporter } from \"@webiny/data-migration/cli/index.js\";\nimport {\n CliMigrationRunReporter,\n InteractiveCliStatusReporter,\n LogReporter,\n MigrationRunner,\n NonInteractiveCliStatusReporter,\n VoidStatusReporter\n} from \"@webiny/data-migration/cli/index.js\";\nimport { ApiAfterDeploy, GetProject, UiService } from \"@webiny/project/abstractions/index.js\";\nimport { IDefaultStackOutput } from \"~/pulumi/types.js\";\nimport { ApiStackOutputService } from \"~/abstractions/index.js\";\n\n/**\n * On every deployment of the API project application, this plugin invokes the data migrations Lambda.\n */\nclass ExecuteDataMigrationsImpl implements ApiAfterDeploy.Interface {\n constructor(\n private ui: UiService.Interface,\n private apiStackOutputService: ApiStackOutputService.Interface,\n private getProject: GetProject.Interface\n ) {}\n\n async execute(params: ApiAfterDeploy.Params) {\n // No need to run migrations if we're doing a preview.\n if (params.preview) {\n return;\n }\n\n const apiOutput = await this.apiStackOutputService.execute<IDefaultStackOutput>();\n if (!apiOutput) {\n // This should never happen, but just in case...\n throw new Error(\n \"Could not retrieve the API stack output while trying to run data migrations.\"\n );\n }\n\n const ui = this.ui;\n ui.info(\"Executing data migrations AWS Lambda function...\");\n\n const logStreamingEnabled = process.env.WEBINY_MIGRATION_LOG_STREAMING !== \"false\";\n if (!logStreamingEnabled) {\n ui.warning(\n [\n \"Data migration log streaming is disabled.\",\n \"Note that the logs will still be accessible in Amazon CloudWatch.\",\n \"Learn more: https://webiny.link/cloudwatch\"\n ].join(\" \")\n );\n }\n\n try {\n const lambdaClient = new LambdaClient({\n region: apiOutput.region\n });\n\n const functionName = apiOutput[\"migrationLambdaArn\"];\n\n const logReporter = new LogReporter(functionName);\n\n let statusReporter: MigrationStatusReporter = new VoidStatusReporter();\n if (params.dataMigrationLogStreaming) {\n const useNonInteractiveReporter = !process.stdout.isTTY || \"CI\" in process.env;\n statusReporter = useNonInteractiveReporter\n ? new NonInteractiveCliStatusReporter(logReporter)\n : new InteractiveCliStatusReporter(logReporter);\n }\n\n const runner = MigrationRunner.create({\n lambdaClient,\n functionName,\n statusReporter\n });\n\n const project = this.getProject.execute();\n\n const result = await runner.runMigration({\n version: process.env.WEBINY_VERSION || project.version\n });\n\n if (result) {\n const reporter = new CliMigrationRunReporter(logReporter, {\n uiService: this.ui\n });\n await reporter.report(result);\n }\n } catch (e) {\n ui.error(`An error occurred while executing data migrations Lambda function!`);\n ui.text(e);\n throw e;\n }\n }\n}\n\nexport const ExecuteDataMigrations = ApiAfterDeploy.createImplementation({\n implementation: ExecuteDataMigrationsImpl,\n dependencies: [UiService, ApiStackOutputService, GetProject]\n});\n"],"mappings":"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","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- import type { PulumiAppModule } from "@webiny/pulumi";
2
- export type ApiMigration = PulumiAppModule<typeof ApiMigration>;
3
- export declare const ApiMigration: import("@webiny/pulumi").PulumiAppModuleDefinition<{
4
- function: import("@webiny/pulumi").PulumiAppResource<typeof import("@pulumi/aws/lambda/function.js").Function>;
5
- }, void>;