polyapi 0.16.10 → 0.16.11

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 (94) hide show
  1. package/build/client/src/commands/function.d.ts.map +1 -1
  2. package/build/client/src/commands/function.js +31 -1
  3. package/build/client/src/commands/function.js.map +1 -1
  4. package/build/client/src/commands/model/validate.d.ts.map +1 -1
  5. package/build/client/src/commands/model/validate.js +3 -0
  6. package/build/client/src/commands/model/validate.js.map +1 -1
  7. package/build/model/src/auth.d.ts +28 -10
  8. package/build/model/src/auth.d.ts.map +1 -1
  9. package/build/model/src/auth.js +0 -13
  10. package/build/model/src/auth.js.map +1 -1
  11. package/build/model/src/dto/application/application.dto.d.ts +8 -0
  12. package/build/model/src/dto/application/application.dto.d.ts.map +1 -1
  13. package/build/model/src/dto/application/application.dto.js +17 -0
  14. package/build/model/src/dto/application/application.dto.js.map +1 -1
  15. package/build/model/src/dto/function/create-api-function.dto.d.ts +2 -2
  16. package/build/model/src/dto/function/create-api-function.dto.d.ts.map +1 -1
  17. package/build/model/src/dto/function/create-api-function.dto.js +3 -3
  18. package/build/model/src/dto/function/create-api-function.dto.js.map +1 -1
  19. package/build/model/src/dto/function/create-custom-function.dto.js.map +1 -1
  20. package/build/model/src/dto/function/execute-api-function-description-generation.dto.d.ts +2 -2
  21. package/build/model/src/dto/function/execute-api-function-description-generation.dto.d.ts.map +1 -1
  22. package/build/model/src/dto/function/execute-api-function-description-generation.dto.js +3 -3
  23. package/build/model/src/dto/function/execute-api-function-description-generation.dto.js.map +1 -1
  24. package/build/model/src/dto/function/function-logs.dto.d.ts.map +1 -1
  25. package/build/model/src/dto/function/function-logs.dto.js.map +1 -1
  26. package/build/model/src/dto/function/function.dto.d.ts +8 -24
  27. package/build/model/src/dto/function/function.dto.d.ts.map +1 -1
  28. package/build/model/src/dto/function/function.dto.js +19 -0
  29. package/build/model/src/dto/function/function.dto.js.map +1 -1
  30. package/build/model/src/dto/function/index.d.ts +1 -0
  31. package/build/model/src/dto/function/index.d.ts.map +1 -1
  32. package/build/model/src/dto/function/index.js +1 -0
  33. package/build/model/src/dto/function/index.js.map +1 -1
  34. package/build/model/src/dto/function/postman-api-function-training.dto.d.ts +2 -2
  35. package/build/model/src/dto/function/postman-api-function-training.dto.d.ts.map +1 -1
  36. package/build/model/src/dto/function/postman-api-function-training.dto.js.map +1 -1
  37. package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts +40 -22
  38. package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts.map +1 -1
  39. package/build/model/src/dto/function/types/source/common-source-types.dto.js +165 -51
  40. package/build/model/src/dto/function/types/source/common-source-types.dto.js.map +1 -1
  41. package/build/model/src/dto/function/types/source/create-source.dto.d.ts +5 -26
  42. package/build/model/src/dto/function/types/source/create-source.dto.d.ts.map +1 -1
  43. package/build/model/src/dto/function/types/source/create-source.dto.js +26 -79
  44. package/build/model/src/dto/function/types/source/create-source.dto.js.map +1 -1
  45. package/build/model/src/dto/function/types/source/index.d.ts +3 -0
  46. package/build/model/src/dto/function/types/source/index.d.ts.map +1 -0
  47. package/build/model/src/dto/function/types/source/index.js +15 -0
  48. package/build/model/src/dto/function/types/source/index.js.map +1 -0
  49. package/build/model/src/dto/function/types/source/source.dto.d.ts +9 -0
  50. package/build/model/src/dto/function/types/source/source.dto.d.ts.map +1 -0
  51. package/build/model/src/dto/function/types/source/source.dto.js +60 -0
  52. package/build/model/src/dto/function/types/source/source.dto.js.map +1 -0
  53. package/build/model/src/dto/function/types/source/update-source.dto.d.ts +7 -10
  54. package/build/model/src/dto/function/types/source/update-source.dto.d.ts.map +1 -1
  55. package/build/model/src/dto/function/types/source/update-source.dto.js +23 -37
  56. package/build/model/src/dto/function/types/source/update-source.dto.js.map +1 -1
  57. package/build/model/src/dto/function/update-api-function.dto.d.ts +2 -2
  58. package/build/model/src/dto/function/update-api-function.dto.d.ts.map +1 -1
  59. package/build/model/src/dto/function/update-api-function.dto.js +3 -3
  60. package/build/model/src/dto/function/update-api-function.dto.js.map +1 -1
  61. package/build/model/src/dto/snippet/create-snippet.dto.d.ts.map +1 -1
  62. package/build/model/src/dto/snippet/create-snippet.dto.js.map +1 -1
  63. package/build/model/src/dto/specification-input/index.d.ts.map +1 -1
  64. package/build/model/src/dto/specification-input/index.js.map +1 -1
  65. package/build/model/src/dto/specification-input/specification-input.dto.d.ts +1 -1
  66. package/build/model/src/dto/specification-input/specification-input.dto.d.ts.map +1 -1
  67. package/build/model/src/dto/trigger/trigger.dto.js.map +1 -1
  68. package/build/model/src/dto/user/whoami.dto.d.ts +2 -0
  69. package/build/model/src/dto/user/whoami.dto.d.ts.map +1 -1
  70. package/build/model/src/dto/user/whoami.dto.js.map +1 -1
  71. package/build/model/src/dto/validators/name-identifier.js.map +1 -1
  72. package/build/model/src/dto/validators/record.js +1 -1
  73. package/build/model/src/dto/validators/record.js.map +1 -1
  74. package/build/model/src/dto/webhook/create-webhook-handle.dto.d.ts +2 -0
  75. package/build/model/src/dto/webhook/create-webhook-handle.dto.d.ts.map +1 -1
  76. package/build/model/src/dto/webhook/create-webhook-handle.dto.js +6 -0
  77. package/build/model/src/dto/webhook/create-webhook-handle.dto.js.map +1 -1
  78. package/build/model/src/dto/webhook/train-webhook-handle.dto.d.ts +7 -0
  79. package/build/model/src/dto/webhook/train-webhook-handle.dto.d.ts.map +1 -1
  80. package/build/model/src/dto/webhook/train-webhook-handle.dto.js +29 -1
  81. package/build/model/src/dto/webhook/train-webhook-handle.dto.js.map +1 -1
  82. package/build/model/src/dto/webhook/update-webhook-handle.dto.d.ts +2 -0
  83. package/build/model/src/dto/webhook/update-webhook-handle.dto.d.ts.map +1 -1
  84. package/build/model/src/dto/webhook/update-webhook-handle.dto.js +6 -0
  85. package/build/model/src/dto/webhook/update-webhook-handle.dto.js.map +1 -1
  86. package/build/model/src/dto/webhook/webhook-handle-description-generation.dto.d.ts.map +1 -1
  87. package/build/model/src/dto/webhook/webhook-handle.dto.d.ts +2 -0
  88. package/build/model/src/dto/webhook/webhook-handle.dto.d.ts.map +1 -1
  89. package/build/model/src/dto/webhook/webhook-handle.dto.js.map +1 -1
  90. package/build/model/src/function.d.ts +8 -5
  91. package/build/model/src/function.d.ts.map +1 -1
  92. package/build/model/src/function.js.map +1 -1
  93. package/build/tsconfig.build.tsbuildinfo +1 -1
  94. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { IntrospectionQuery } from 'graphql';
2
2
  import { Body, Variables, Header, Method } from '../../function';
3
- import { Auth } from '../../auth';
3
+ import { PostmanAuth } from '../../auth';
4
4
  export declare class PostmanApiFunctionTrainingDto {
5
5
  requestName: string;
6
6
  name?: string;
@@ -13,7 +13,7 @@ export declare class PostmanApiFunctionTrainingDto {
13
13
  variables?: Variables;
14
14
  statusCode: number;
15
15
  templateHeaders: Header[];
16
- templateAuth?: Auth;
16
+ templateAuth?: PostmanAuth;
17
17
  method: Method;
18
18
  templateUrl: string;
19
19
  templateBody: Body;
@@ -1 +1 @@
1
- {"version":3,"file":"postman-api-function-training.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKlC,qBAAa,6BAA6B;IAGxC,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,GAAG,EAAE,MAAM,CAAC;IAEZ,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,IAAI,CAAC;IAGnB,EAAE,CAAC,EAAE,MAAM,CAAC;IAIZ,qBAAqB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAIjD,eAAe,EAAE,OAAO,CAAC;CAC1B"}
1
+ {"version":3,"file":"postman-api-function-training.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAIjE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,qBAAa,6BAA6B;IAGxC,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,GAAG,EAAE,MAAM,CAAC;IAEZ,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,IAAI,CAAC;IAGnB,EAAE,CAAC,EAAE,MAAM,CAAC;IAIZ,qBAAqB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAIjD,eAAe,EAAE,OAAO,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"postman-api-function-training.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,qDAAwF;AAExF,8CAAkE;AAElE,MAAa,6BAA6B;CA0CzC;AA1CD,sEA0CC;AAvCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACO;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAc,GAAE;;2DACH;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,8BAAiB,GAAE;;8DACH;AAKjB;IADC,IAAA,4BAAU,GAAE;;0DACD;AAUZ;IADC,IAAA,4BAAU,GAAE;;kEACO;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACC;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4EACsC;AAIjD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sEACa"}
1
+ {"version":3,"file":"postman-api-function-training.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qDAAwF;AAExF,8CAAkE;AAGlE,MAAa,6BAA6B;CA0CzC;AA1CD,sEA0CC;AAvCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACO;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAc,GAAE;;2DACH;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,8BAAiB,GAAE;;8DACH;AAKjB;IADC,IAAA,4BAAU,GAAE;;0DACD;AAUZ;IADC,IAAA,4BAAU,GAAE;;kEACO;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACC;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4EACsC;AAIjD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sEACa"}
@@ -1,42 +1,60 @@
1
- export declare class UpdateSourceEntry {
1
+ export declare class EntrySource {
2
2
  key: string;
3
3
  value: string;
4
4
  }
5
- export declare class UpdateSourceNullableEntry {
6
- key: string;
7
- value: string | null;
5
+ export declare class BasicAuthSourceEntries {
6
+ key: 'username' | 'password';
7
+ value: string;
8
8
  }
9
- export declare class Body {
9
+ export declare class BearerAuthSourceEntry {
10
+ key: 'token';
11
+ value: string;
12
+ }
13
+ export declare class FormDataEntrySource extends EntrySource {
14
+ type: 'text' | 'file';
15
+ }
16
+ export declare class BodySource {
10
17
  mode: 'urlencoded' | 'formdata' | 'raw' | 'empty';
11
18
  }
12
- export declare class EmptyBody extends Body {
19
+ export declare class EmptyBodySource extends BodySource {
13
20
  mode: 'empty';
14
21
  }
15
- export declare class UpdateAuth {
16
- type: 'basic' | 'bearer' | 'apikey' | 'noauth';
22
+ export declare class RawBodySource extends BodySource {
23
+ mode: 'raw';
24
+ raw: string;
25
+ language: 'html' | 'xml' | 'text' | 'json' | 'javascript';
17
26
  }
18
- export declare class BearerEntry {
19
- type: 'any';
20
- key: 'token';
21
- value: string;
27
+ export declare class FormDataBodySource extends BodySource {
28
+ mode: 'formdata';
29
+ formdata: FormDataEntrySource[];
22
30
  }
23
- export declare class BasicAuthEntries {
24
- key: 'username' | 'password';
25
- value: string;
31
+ export declare class UrlEncodedBodySource extends BodySource {
32
+ mode: 'urlencoded';
33
+ urlencoded: EntrySource[];
26
34
  }
27
- export declare class BasicAuthSource extends UpdateAuth {
35
+ export declare class UpdateAuthSource {
36
+ type: 'basic' | 'bearer' | 'apikey' | 'noauth';
37
+ }
38
+ export declare class BasicAuthSource extends UpdateAuthSource {
28
39
  type: 'basic';
29
- basic: BasicAuthEntries[];
40
+ basic: BasicAuthSourceEntries[];
30
41
  }
31
- export declare class ApiKeySource extends UpdateAuth {
42
+ export declare class ApiKeyAuthSource extends UpdateAuthSource {
32
43
  type: 'apikey';
33
- apikey: UpdateSourceEntry[];
44
+ apikey: {
45
+ key: string;
46
+ value: string;
47
+ }[];
34
48
  }
35
- export declare class BearerAuthSource extends UpdateAuth {
49
+ export declare class BearerAuthSource extends UpdateAuthSource {
36
50
  type: 'bearer';
37
- bearer: BearerEntry[];
51
+ bearer: BearerAuthSourceEntry[];
38
52
  }
39
- export declare class NoAuth extends UpdateAuth {
53
+ export declare class NoAuthSource extends UpdateAuthSource {
40
54
  type: 'noauth';
41
55
  }
56
+ export declare class SourceNullableEntry {
57
+ key: string;
58
+ value: string | null;
59
+ }
42
60
  //# sourceMappingURL=common-source-types.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common-source-types.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/common-source-types.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,iBAAiB;IAG1B,GAAG,EAAE,MAAM,CAAC;IAIZ,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,yBAAyB;IAElC,GAAG,EAAE,MAAM,CAAC;IAIZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,qBAAa,IAAI;IAEb,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC;CACrD;AAED,qBAAa,SAAU,SAAQ,IAAI;IAE/B,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,UAAU;IAEnB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;CAClD;AAED,qBAAa,WAAW;IAEtB,IAAI,EAAE,KAAK,CAAC;IAGZ,GAAG,EAAE,OAAO,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,gBAAgB;IAEzB,GAAG,EAAE,UAAU,GAAG,UAAU,CAAC;IAI7B,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,eAAgB,SAAQ,UAAU;IAE3C,IAAI,EAAE,OAAO,CAAC;IAiBd,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,qBAAa,YAAa,SAAQ,UAAU;IAExC,IAAI,EAAE,QAAQ,CAAC;IAef,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,qBAAa,gBAAiB,SAAQ,UAAU;IAE5C,IAAI,EAAE,QAAQ,CAAC;IAQf,MAAM,EAAE,WAAW,EAAE,CAAC;CACzB;AAED,qBAAa,MAAO,SAAQ,UAAU;IAEpC,IAAI,EAAE,QAAQ,CAAC;CAChB"}
1
+ {"version":3,"file":"common-source-types.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/common-source-types.dto.ts"],"names":[],"mappings":"AAMA,qBAAa,WAAW;IAEtB,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAC;CACf;AAqCD,qBAAa,sBAAsB;IAEjC,GAAG,EAAE,UAAU,GAAG,UAAU,CAAC;IAI7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,qBAAqB;IAGhC,GAAG,EAAE,OAAO,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAoB,SAAQ,WAAW;IAElD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAGD,qBAAa,UAAU;IAEnB,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC;CACrD;AAED,qBAAa,eAAgB,SAAQ,UAAU;IAE7C,IAAI,EAAE,OAAO,CAAC;CACf;AAED,qBAAa,aAAc,SAAQ,UAAU;IAE3C,IAAI,EAAE,KAAK,CAAC;IAGZ,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CAC3D;AAED,qBAAa,kBAAmB,SAAQ,UAAU;IAEhD,IAAI,EAAE,UAAU,CAAC;IAKjB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAED,qBAAa,oBAAqB,SAAQ,UAAU;IAElD,IAAI,EAAE,YAAY,CAAC;IAKnB,UAAU,EAAE,WAAW,EAAE,CAAC;CAC3B;AAGD,qBAAa,gBAAgB;IAEzB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;CAClD;AAED,qBAAa,eAAgB,SAAQ,gBAAgB;IAEnD,IAAI,EAAE,OAAO,CAAC;IAiBd,KAAK,EAAE,sBAAsB,EAAE,CAAC;CACjC;AAED,qBACa,gBAAiB,SAAQ,gBAAgB;IAEpD,IAAI,EAAE,QAAQ,CAAC;IA2Cf,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC1C;AAED,qBAAa,gBAAiB,SAAQ,gBAAgB;IAEpD,IAAI,EAAE,QAAQ,CAAC;IAQf,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED,qBAAa,YAAa,SAAQ,gBAAgB;IAElD,IAAI,EAAE,QAAQ,CAAC;CACd;AAGD,qBAAa,mBAAmB;IAE9B,GAAG,EAAE,MAAM,CAAC;IAIZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
@@ -9,84 +9,156 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.NoAuth = exports.BearerAuthSource = exports.ApiKeySource = exports.BasicAuthSource = exports.BasicAuthEntries = exports.BearerEntry = exports.UpdateAuth = exports.EmptyBody = exports.Body = exports.UpdateSourceNullableEntry = exports.UpdateSourceEntry = void 0;
12
+ exports.SourceNullableEntry = exports.NoAuthSource = exports.BearerAuthSource = exports.ApiKeyAuthSource = exports.BasicAuthSource = exports.UpdateAuthSource = exports.UrlEncodedBodySource = exports.FormDataBodySource = exports.RawBodySource = exports.EmptyBodySource = exports.BodySource = exports.FormDataEntrySource = exports.BearerAuthSourceEntry = exports.BasicAuthSourceEntries = exports.EntrySource = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const class_validator_1 = require("class-validator");
16
- class UpdateSourceEntry {
16
+ class EntrySource {
17
17
  }
18
- exports.UpdateSourceEntry = UpdateSourceEntry;
18
+ exports.EntrySource = EntrySource;
19
+ __decorate([
20
+ (0, class_validator_1.IsString)(),
21
+ __metadata("design:type", String)
22
+ ], EntrySource.prototype, "key", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], EntrySource.prototype, "value", void 0);
27
+ class ApiKeyEntrySource {
28
+ }
29
+ __decorate([
30
+ (0, class_validator_1.IsIn)(['in', 'key', 'value']),
31
+ __metadata("design:type", String)
32
+ ], ApiKeyEntrySource.prototype, "key", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], ApiKeyEntrySource.prototype, "value", void 0);
37
+ class ApiKeyInEntrySource {
38
+ }
39
+ __decorate([
40
+ (0, class_validator_1.IsIn)(['in']),
41
+ __metadata("design:type", String)
42
+ ], ApiKeyInEntrySource.prototype, "key", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsIn)(['header', 'query']),
45
+ __metadata("design:type", String)
46
+ ], ApiKeyInEntrySource.prototype, "value", void 0);
47
+ class KeyValueApiKeyEntrySource extends ApiKeyEntrySource {
48
+ }
49
+ __decorate([
50
+ (0, class_validator_1.IsIn)(['key']),
51
+ __metadata("design:type", String)
52
+ ], KeyValueApiKeyEntrySource.prototype, "key", void 0);
19
53
  __decorate([
20
54
  (0, swagger_1.ApiProperty)(),
21
55
  (0, class_validator_1.IsString)(),
22
56
  __metadata("design:type", String)
23
- ], UpdateSourceEntry.prototype, "key", void 0);
57
+ ], KeyValueApiKeyEntrySource.prototype, "value", void 0);
58
+ class ValueApiKeyEntrySource extends ApiKeyEntrySource {
59
+ }
60
+ __decorate([
61
+ (0, class_validator_1.IsIn)(['value']),
62
+ __metadata("design:type", String)
63
+ ], ValueApiKeyEntrySource.prototype, "key", void 0);
24
64
  __decorate([
25
65
  (0, swagger_1.ApiProperty)(),
26
66
  (0, class_validator_1.IsString)(),
27
67
  __metadata("design:type", String)
28
- ], UpdateSourceEntry.prototype, "value", void 0);
29
- class UpdateSourceNullableEntry {
68
+ ], ValueApiKeyEntrySource.prototype, "value", void 0);
69
+ class BasicAuthSourceEntries {
30
70
  }
31
- exports.UpdateSourceNullableEntry = UpdateSourceNullableEntry;
71
+ exports.BasicAuthSourceEntries = BasicAuthSourceEntries;
72
+ __decorate([
73
+ (0, class_validator_1.IsIn)(['username', 'password']),
74
+ __metadata("design:type", String)
75
+ ], BasicAuthSourceEntries.prototype, "key", void 0);
32
76
  __decorate([
77
+ (0, swagger_1.ApiProperty)(),
33
78
  (0, class_validator_1.IsString)(),
34
79
  __metadata("design:type", String)
35
- ], UpdateSourceNullableEntry.prototype, "key", void 0);
80
+ ], BasicAuthSourceEntries.prototype, "value", void 0);
81
+ class BearerAuthSourceEntry {
82
+ }
83
+ exports.BearerAuthSourceEntry = BearerAuthSourceEntry;
84
+ __decorate([
85
+ (0, class_validator_1.IsIn)(['token']),
86
+ __metadata("design:type", String)
87
+ ], BearerAuthSourceEntry.prototype, "key", void 0);
36
88
  __decorate([
37
- (0, class_validator_1.ValidateIf)((object, value) => value !== null),
38
89
  (0, class_validator_1.IsString)(),
39
90
  __metadata("design:type", String)
40
- ], UpdateSourceNullableEntry.prototype, "value", void 0);
41
- class Body {
91
+ ], BearerAuthSourceEntry.prototype, "value", void 0);
92
+ class FormDataEntrySource extends EntrySource {
93
+ }
94
+ exports.FormDataEntrySource = FormDataEntrySource;
95
+ __decorate([
96
+ (0, class_validator_1.IsIn)(['text', 'file']),
97
+ __metadata("design:type", String)
98
+ ], FormDataEntrySource.prototype, "type", void 0);
99
+ class BodySource {
42
100
  }
43
- exports.Body = Body;
101
+ exports.BodySource = BodySource;
44
102
  __decorate([
45
103
  (0, class_validator_1.IsIn)(['urlencoded', 'formdata', 'raw', 'empty']),
46
104
  __metadata("design:type", String)
47
- ], Body.prototype, "mode", void 0);
48
- class EmptyBody extends Body {
105
+ ], BodySource.prototype, "mode", void 0);
106
+ class EmptyBodySource extends BodySource {
49
107
  }
50
- exports.EmptyBody = EmptyBody;
108
+ exports.EmptyBodySource = EmptyBodySource;
51
109
  __decorate([
52
110
  (0, class_validator_1.IsIn)(['empty']),
53
111
  __metadata("design:type", String)
54
- ], EmptyBody.prototype, "mode", void 0);
55
- class UpdateAuth {
112
+ ], EmptyBodySource.prototype, "mode", void 0);
113
+ class RawBodySource extends BodySource {
56
114
  }
57
- exports.UpdateAuth = UpdateAuth;
115
+ exports.RawBodySource = RawBodySource;
58
116
  __decorate([
59
- (0, class_validator_1.IsIn)(['basic', 'bearer', 'apikey', 'noauth']),
117
+ (0, class_validator_1.IsIn)(['raw']),
60
118
  __metadata("design:type", String)
61
- ], UpdateAuth.prototype, "type", void 0);
62
- class BearerEntry {
63
- }
64
- exports.BearerEntry = BearerEntry;
119
+ ], RawBodySource.prototype, "mode", void 0);
65
120
  __decorate([
66
- (0, class_validator_1.IsIn)(['any']),
121
+ (0, class_validator_1.IsString)(),
67
122
  __metadata("design:type", String)
68
- ], BearerEntry.prototype, "type", void 0);
123
+ ], RawBodySource.prototype, "raw", void 0);
69
124
  __decorate([
70
- (0, class_validator_1.IsIn)(['token']),
125
+ (0, class_validator_1.IsIn)(['html', 'xml', 'text', 'json', 'javascript']),
71
126
  __metadata("design:type", String)
72
- ], BearerEntry.prototype, "key", void 0);
127
+ ], RawBodySource.prototype, "language", void 0);
128
+ class FormDataBodySource extends BodySource {
129
+ }
130
+ exports.FormDataBodySource = FormDataBodySource;
73
131
  __decorate([
74
- (0, class_validator_1.IsString)(),
132
+ (0, class_validator_1.IsIn)(['formdata']),
75
133
  __metadata("design:type", String)
76
- ], BearerEntry.prototype, "value", void 0);
77
- class BasicAuthEntries {
134
+ ], FormDataBodySource.prototype, "mode", void 0);
135
+ __decorate([
136
+ (0, class_validator_1.IsArray)(),
137
+ (0, class_validator_1.ValidateNested)({ each: true }),
138
+ (0, class_transformer_1.Type)(() => FormDataEntrySource),
139
+ __metadata("design:type", Array)
140
+ ], FormDataBodySource.prototype, "formdata", void 0);
141
+ class UrlEncodedBodySource extends BodySource {
78
142
  }
79
- exports.BasicAuthEntries = BasicAuthEntries;
143
+ exports.UrlEncodedBodySource = UrlEncodedBodySource;
80
144
  __decorate([
81
- (0, class_validator_1.IsIn)(['username', 'password']),
145
+ (0, class_validator_1.IsIn)(['urlencoded']),
82
146
  __metadata("design:type", String)
83
- ], BasicAuthEntries.prototype, "key", void 0);
147
+ ], UrlEncodedBodySource.prototype, "mode", void 0);
84
148
  __decorate([
85
- (0, swagger_1.ApiProperty)(),
86
- (0, class_validator_1.IsString)(),
149
+ (0, class_validator_1.IsArray)(),
150
+ (0, class_validator_1.ValidateNested)({ each: true }),
151
+ (0, class_transformer_1.Type)(() => EntrySource),
152
+ __metadata("design:type", Array)
153
+ ], UrlEncodedBodySource.prototype, "urlencoded", void 0);
154
+ class UpdateAuthSource {
155
+ }
156
+ exports.UpdateAuthSource = UpdateAuthSource;
157
+ __decorate([
158
+ (0, class_validator_1.IsIn)(['basic', 'bearer', 'apikey', 'noauth']),
87
159
  __metadata("design:type", String)
88
- ], BasicAuthEntries.prototype, "value", void 0);
89
- class BasicAuthSource extends UpdateAuth {
160
+ ], UpdateAuthSource.prototype, "type", void 0);
161
+ class BasicAuthSource extends UpdateAuthSource {
90
162
  }
91
163
  exports.BasicAuthSource = BasicAuthSource;
92
164
  __decorate([
@@ -97,7 +169,7 @@ __decorate([
97
169
  (0, swagger_1.ApiProperty)({
98
170
  type: 'array',
99
171
  items: {
100
- $ref: (0, swagger_1.getSchemaPath)(BasicAuthEntries),
172
+ $ref: (0, swagger_1.getSchemaPath)(BasicAuthSourceEntries),
101
173
  },
102
174
  uniqueItems: true,
103
175
  minimum: 2,
@@ -107,34 +179,64 @@ __decorate([
107
179
  (0, class_validator_1.ValidateNested)({ each: true }),
108
180
  (0, class_validator_1.ArrayMaxSize)(2),
109
181
  (0, class_validator_1.ArrayMinSize)(2),
110
- (0, class_transformer_1.Type)(() => BasicAuthEntries),
182
+ (0, class_transformer_1.Type)(() => BasicAuthSourceEntries),
111
183
  (0, class_validator_1.ArrayUnique)(o => o.key),
112
184
  __metadata("design:type", Array)
113
185
  ], BasicAuthSource.prototype, "basic", void 0);
114
- class ApiKeySource extends UpdateAuth {
115
- }
116
- exports.ApiKeySource = ApiKeySource;
186
+ let ApiKeyAuthSource = exports.ApiKeyAuthSource = class ApiKeyAuthSource extends UpdateAuthSource {
187
+ };
117
188
  __decorate([
118
189
  (0, class_validator_1.IsIn)(['apikey']),
119
190
  __metadata("design:type", String)
120
- ], ApiKeySource.prototype, "type", void 0);
191
+ ], ApiKeyAuthSource.prototype, "type", void 0);
121
192
  __decorate([
122
193
  (0, swagger_1.ApiProperty)({
123
194
  type: 'array',
195
+ description: 'Items uniqueness is determined by "key" property.',
124
196
  items: {
125
- $ref: (0, swagger_1.getSchemaPath)(UpdateSourceEntry),
197
+ anyOf: [
198
+ {
199
+ $ref: (0, swagger_1.getSchemaPath)(ApiKeyInEntrySource),
200
+ },
201
+ {
202
+ $ref: (0, swagger_1.getSchemaPath)(KeyValueApiKeyEntrySource),
203
+ },
204
+ ],
126
205
  },
127
206
  uniqueItems: true,
128
207
  minimum: 3,
208
+ maximum: 3,
129
209
  }),
130
210
  (0, class_validator_1.IsArray)(),
131
211
  (0, class_validator_1.ValidateNested)({ each: true }),
132
- (0, class_transformer_1.Type)(() => UpdateSourceEntry),
212
+ (0, class_transformer_1.Type)(() => ApiKeyEntrySource, {
213
+ keepDiscriminatorProperty: true,
214
+ discriminator: {
215
+ property: 'key',
216
+ subTypes: [
217
+ {
218
+ value: ApiKeyInEntrySource,
219
+ name: 'in',
220
+ }, {
221
+ value: KeyValueApiKeyEntrySource,
222
+ name: 'key',
223
+ },
224
+ {
225
+ value: ValueApiKeyEntrySource,
226
+ name: 'value',
227
+ },
228
+ ],
229
+ },
230
+ }),
133
231
  (0, class_validator_1.ArrayUnique)(o => o.key),
134
232
  (0, class_validator_1.ArrayMinSize)(3),
233
+ (0, class_validator_1.ArrayMaxSize)(3),
135
234
  __metadata("design:type", Array)
136
- ], ApiKeySource.prototype, "apikey", void 0);
137
- class BearerAuthSource extends UpdateAuth {
235
+ ], ApiKeyAuthSource.prototype, "apikey", void 0);
236
+ exports.ApiKeyAuthSource = ApiKeyAuthSource = __decorate([
237
+ (0, swagger_1.ApiExtraModels)(KeyValueApiKeyEntrySource, ApiKeyInEntrySource, ValueApiKeyEntrySource)
238
+ ], ApiKeyAuthSource);
239
+ class BearerAuthSource extends UpdateAuthSource {
138
240
  }
139
241
  exports.BearerAuthSource = BearerAuthSource;
140
242
  __decorate([
@@ -145,16 +247,28 @@ __decorate([
145
247
  (0, swagger_1.ApiProperty)(),
146
248
  (0, class_validator_1.IsArray)(),
147
249
  (0, class_validator_1.ValidateNested)({ each: true }),
148
- (0, class_transformer_1.Type)(() => BearerEntry),
250
+ (0, class_transformer_1.Type)(() => BearerAuthSourceEntry),
149
251
  (0, class_validator_1.ArrayMinSize)(1),
150
252
  (0, class_validator_1.ArrayMaxSize)(1),
151
253
  __metadata("design:type", Array)
152
254
  ], BearerAuthSource.prototype, "bearer", void 0);
153
- class NoAuth extends UpdateAuth {
255
+ class NoAuthSource extends UpdateAuthSource {
154
256
  }
155
- exports.NoAuth = NoAuth;
257
+ exports.NoAuthSource = NoAuthSource;
156
258
  __decorate([
157
259
  (0, class_validator_1.IsIn)(['noauth']),
158
260
  __metadata("design:type", String)
159
- ], NoAuth.prototype, "type", void 0);
261
+ ], NoAuthSource.prototype, "type", void 0);
262
+ class SourceNullableEntry {
263
+ }
264
+ exports.SourceNullableEntry = SourceNullableEntry;
265
+ __decorate([
266
+ (0, class_validator_1.IsString)(),
267
+ __metadata("design:type", String)
268
+ ], SourceNullableEntry.prototype, "key", void 0);
269
+ __decorate([
270
+ (0, class_validator_1.ValidateIf)((object, value) => value !== null),
271
+ (0, class_validator_1.IsString)(),
272
+ __metadata("design:type", String)
273
+ ], SourceNullableEntry.prototype, "value", void 0);
160
274
  //# sourceMappingURL=common-source-types.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common-source-types.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/common-source-types.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6D;AAC7D,yDAAyC;AACzC,qDAA+H;AAE/H,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AALG;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;8CACC;AAIZ;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;gDACG;AAGlB,MAAa,yBAAyB;CAOrC;AAPD,8DAOC;AALG;IADC,IAAA,0BAAQ,GAAE;;sDACC;AAIZ;IAFC,IAAA,4BAAU,EAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;IAC7C,IAAA,0BAAQ,GAAE;;wDACU;AAGzB,MAAa,IAAI;CAGhB;AAHD,oBAGC;AADG;IADC,IAAA,sBAAI,EAAC,CAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;;kCACC;AAGtD,MAAa,SAAU,SAAQ,IAAI;CAGlC;AAHD,8BAGC;AADG;IADC,IAAA,sBAA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CAkBC;AAhBG;IADC,IAAA,sBAAI,EAAC,CAAC,QAAQ,CAAC,CAAC;;0CACF;AAef;IAbC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,OAAO;QACb,KAAK,EAAE;YACL,IAAI,EAAE,IAAA,uBAAa,EAAC,iBAAiB,CAAC;SACvC;QACD,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,CAAC;KACX,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;IAC7B,IAAA,6BAAW,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACvB,IAAA,8BAAY,EAAC,CAAC,CAAC;;4CACY;AAGhC,MAAa,gBAAiB,SAAQ,UAAU;CAW/C;AAXD,4CAWC;AATG;IADC,IAAA,sBAAI,EAAC,CAAC,QAAQ,CAAC,CAAC;;8CACF;AAQf;IANC,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAW,CAAC;IACvB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;;gDACM;AAG1B,MAAa,MAAO,SAAQ,UAAU;CAGrC;AAHD,wBAGC;AADC;IADC,IAAA,sBAAI,EAAC,CAAC,QAAQ,CAAC,CAAC;;oCACF"}
1
+ {"version":3,"file":"common-source-types.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/common-source-types.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6E;AAC7E,yDAAyC;AACzC,qDAA+H;AAI/H,MAAa,WAAW;CAMvB;AAND,kCAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;w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KeySource, NoAuth, UpdateSourceEntry, Body } from './common-source-types.dto';
2
- export { UpdateSourceNullableEntry, BearerAuthSource, BasicAuthSource, ApiKeySource } from './common-source-types.dto';
3
- declare class CreateSourceHeadersDto {
4
- key: string;
5
- value: string;
6
- }
7
- export declare class CreateFormDataEntry extends UpdateSourceEntry {
8
- type: 'text' | 'file';
9
- }
10
- export declare class CreateRawBodySource extends Body {
11
- mode: 'raw';
12
- raw: string;
13
- language?: 'html' | 'xml' | 'text' | 'json' | 'javascript';
14
- }
15
- export declare class CreateFormDataBodySource extends Body {
16
- mode: 'formdata';
17
- formdata: CreateFormDataEntry[];
18
- }
19
- export declare class CreateUrlEncodedBodySource extends Body {
20
- mode: 'urlencoded';
21
- urlencoded: UpdateSourceEntry[];
22
- }
23
- export declare class CreateSourceFunctionDto {
1
+ import { EmptyBodySource, BasicAuthSource, BearerAuthSource, RawBodySource, EntrySource, UrlEncodedBodySource, FormDataBodySource, ApiKeyAuthSource, NoAuthSource } from './common-source-types.dto';
2
+ export declare class CreateSourceDto {
24
3
  url: string;
25
4
  method: string;
26
- headers?: CreateSourceHeadersDto[];
27
- auth: BasicAuthSource | BearerAuthSource | ApiKeySource | NoAuth;
28
- body: CreateUrlEncodedBodySource | CreateFormDataBodySource | CreateRawBodySource | EmptyBody;
5
+ headers?: EntrySource[];
6
+ auth: BasicAuthSource | BearerAuthSource | ApiKeyAuthSource | NoAuthSource;
7
+ body: UrlEncodedBodySource | FormDataBodySource | RawBodySource | EmptyBodySource;
29
8
  }
30
9
  //# sourceMappingURL=create-source.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-source.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/create-source.dto.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,MAAM,EAEN,iBAAiB,EAEjB,IAAI,EACL,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEvH,cAAM,sBAAsB;IAE1B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAoB,SAAQ,iBAAiB;IAGxD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,qBAAa,mBAAoB,SAAQ,IAAI;IAE3C,IAAI,EAAE,KAAK,CAAC;IAGZ,GAAG,EAAE,MAAM,CAAC;IAIZ,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CAC5D;AAED,qBAAa,wBAAyB,SAAQ,IAAI;IAEhD,IAAI,EAAE,UAAU,CAAC;IAEjB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAED,qBAAa,0BAA2B,SAAQ,IAAI;IAElD,IAAI,EAAE,YAAY,CAAC;IAEnB,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACjC;AAED,qBACa,uBAAuB;IAEhC,GAAG,EAAE,MAAM,CAAC;IAGZ,MAAM,EAAE,MAAM,CAAC;IAMf,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAyCnC,IAAI,EAAE,eAAe,GAAG,gBAAgB,GAAG,YAAY,GAAG,MAAM,CAAC;IA4CjE,IAAI,EAAE,0BAA0B,GAAG,wBAAwB,GAAG,mBAAmB,GAAG,SAAS,CAAC;CACjG"}
1
+ {"version":3,"file":"create-source.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/create-source.dto.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,eAAe,EACf,eAAe,EACf,gBAAgB,EAIhB,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,qBACa,eAAe;IAExB,GAAG,EAAE,MAAM,CAAC;IAGZ,MAAM,EAAE,MAAM,CAAC;IAMf,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IAyCxB,IAAI,EAAE,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,YAAY,CAAC;IA4C3E,IAAI,EAAE,oBAAoB,GAAG,kBAAkB,GAAG,aAAa,GAAG,eAAe,CAAC;CACrF"}