@kubb/plugin-cypress 4.5.2 → 4.5.4

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,4 +1,4 @@
1
- import { i as OperationSchemas, n as PluginCypress, o as HttpMethod } from "./types-DCw3J-PA.cjs";
1
+ import { i as OperationSchemas, n as PluginCypress, o as HttpMethod } from "./types-DVje6w9z.cjs";
2
2
  import { KubbNode } from "@kubb/react-fabric/types";
3
3
 
4
4
  //#region src/components/Request.d.ts
@@ -1,4 +1,4 @@
1
- import { i as OperationSchemas, n as PluginCypress, o as HttpMethod } from "./types-CWu2D2ZJ.js";
1
+ import { i as OperationSchemas, n as PluginCypress, o as HttpMethod } from "./types-DbU-_Igx.js";
2
2
  import { KubbNode } from "@kubb/react-fabric/types";
3
3
 
4
4
  //#region src/components/Request.d.ts
@@ -1,4 +1,4 @@
1
- import { n as PluginCypress, r as ReactGenerator } from "./types-DCw3J-PA.cjs";
1
+ import { n as PluginCypress, r as ReactGenerator } from "./types-DVje6w9z.cjs";
2
2
 
3
3
  //#region src/generators/cypressGenerator.d.ts
4
4
  declare const cypressGenerator: ReactGenerator<PluginCypress>;
@@ -1,4 +1,4 @@
1
- import { n as PluginCypress, r as ReactGenerator } from "./types-CWu2D2ZJ.js";
1
+ import { n as PluginCypress, r as ReactGenerator } from "./types-DbU-_Igx.js";
2
2
 
3
3
  //#region src/generators/cypressGenerator.d.ts
4
4
  declare const cypressGenerator: ReactGenerator<PluginCypress>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginCypress, t as Options } from "./types-DCw3J-PA.cjs";
1
+ import { a as UserPluginWithLifeCycle, n as PluginCypress, t as Options } from "./types-DVje6w9z.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginCypressName = "plugin-cypress";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginCypress, t as Options } from "./types-CWu2D2ZJ.js";
1
+ import { a as UserPluginWithLifeCycle, n as PluginCypress, t as Options } from "./types-DbU-_Igx.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginCypressName = "plugin-cypress";
@@ -554,6 +554,133 @@ type FileMetaBase = {
554
554
  pluginKey?: Plugin['key'];
555
555
  };
556
556
  //#endregion
557
+ //#region ../plugin-oas/src/types.d.ts
558
+ type Context$2 = {
559
+ getOas(): Promise<Oas>;
560
+ getBaseURL(): Promise<string | undefined>;
561
+ };
562
+ declare global {
563
+ namespace Kubb {
564
+ interface PluginContext extends Context$2 {}
565
+ }
566
+ }
567
+ type ResolvePathOptions = {
568
+ pluginKey?: Plugin['key'];
569
+ group?: {
570
+ tag?: string;
571
+ path?: string;
572
+ };
573
+ type?: ResolveNameParams['type'];
574
+ };
575
+ /**
576
+ * `propertyName` is the ref name + resolved with the nameResolver
577
+ * @example import { Pet } from './Pet'
578
+ *
579
+ * `originalName` is the original name used(in PascalCase), only used to remove duplicates
580
+ *
581
+ * `pluginKey` can be used to override the current plugin being used, handy when you want to import a type/schema out of another plugin
582
+ * @example import a type(plugin-ts) for a mock file(swagger-faker)
583
+ */
584
+ type Ref = {
585
+ propertyName: string;
586
+ originalName: string;
587
+ path: KubbFile.Path;
588
+ pluginKey?: Plugin['key'];
589
+ };
590
+ type Refs = Record<string, Ref>;
591
+ type OperationSchema = {
592
+ /**
593
+ * Converted name, contains already `PathParams`, `QueryParams`, ...
594
+ */
595
+ name: string;
596
+ schema: SchemaObject$1;
597
+ operation?: Operation$1;
598
+ /**
599
+ * OperationName in PascalCase, only being used in OperationGenerator
600
+ */
601
+ operationName: string;
602
+ description?: string;
603
+ statusCode?: number;
604
+ keys?: string[];
605
+ keysToOmit?: string[];
606
+ withData?: boolean;
607
+ };
608
+ type OperationSchemas = {
609
+ pathParams?: OperationSchema & {
610
+ keysToOmit?: never;
611
+ };
612
+ queryParams?: OperationSchema & {
613
+ keysToOmit?: never;
614
+ };
615
+ headerParams?: OperationSchema & {
616
+ keysToOmit?: never;
617
+ };
618
+ request?: OperationSchema;
619
+ response: OperationSchema;
620
+ responses: Array<OperationSchema>;
621
+ statusCodes?: Array<OperationSchema>;
622
+ errors?: Array<OperationSchema>;
623
+ };
624
+ type ByTag = {
625
+ type: 'tag';
626
+ pattern: string | RegExp;
627
+ };
628
+ type ByOperationId = {
629
+ type: 'operationId';
630
+ pattern: string | RegExp;
631
+ };
632
+ type ByPath = {
633
+ type: 'path';
634
+ pattern: string | RegExp;
635
+ };
636
+ type ByMethod = {
637
+ type: 'method';
638
+ pattern: HttpMethod | RegExp;
639
+ };
640
+ type BySchemaName = {
641
+ type: 'schemaName';
642
+ pattern: string | RegExp;
643
+ };
644
+ type ByContentType = {
645
+ type: 'contentType';
646
+ pattern: string | RegExp;
647
+ };
648
+ type Exclude$1 = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
649
+ type Include = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
650
+ type Override<TOptions> = (ByTag | ByOperationId | ByPath | ByMethod | BySchemaName | ByContentType) & {
651
+ options: Partial<TOptions>;
652
+ };
653
+ //#endregion
654
+ //#region ../plugin-oas/src/OperationGenerator.d.ts
655
+ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
656
+ fabric: Fabric;
657
+ oas: Oas;
658
+ exclude: Array<Exclude$1> | undefined;
659
+ include: Array<Include> | undefined;
660
+ override: Array<Override<TOptions>> | undefined;
661
+ contentType: contentType | undefined;
662
+ pluginManager: PluginManager;
663
+ /**
664
+ * Current plugin
665
+ */
666
+ plugin: Plugin<TPluginOptions>;
667
+ mode: KubbFile.Mode;
668
+ };
669
+ declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
670
+ #private;
671
+ getSchemas(operation: Operation$1, {
672
+ resolveName
673
+ }?: {
674
+ resolveName?: (name: string) => string;
675
+ }): OperationSchemas;
676
+ getOperations(): Promise<Array<{
677
+ path: string;
678
+ method: HttpMethod;
679
+ operation: Operation$1;
680
+ }>>;
681
+ build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
682
+ }
683
+ //#endregion
557
684
  //#region ../plugin-oas/src/SchemaMapper.d.ts
558
685
  type SchemaKeywordMapper = {
559
686
  object: {
@@ -771,105 +898,8 @@ type Schema = {
771
898
  keyword: string;
772
899
  } | SchemaKeywordMapper[keyof SchemaKeywordMapper];
773
900
  //#endregion
774
- //#region ../plugin-oas/src/types.d.ts
775
- type Context$2 = {
776
- getOas(): Promise<Oas>;
777
- getBaseURL(): Promise<string | undefined>;
778
- };
779
- declare global {
780
- namespace Kubb {
781
- interface PluginContext extends Context$2 {}
782
- }
783
- }
784
- type ResolvePathOptions = {
785
- pluginKey?: Plugin['key'];
786
- group?: {
787
- tag?: string;
788
- path?: string;
789
- };
790
- type?: ResolveNameParams['type'];
791
- };
792
- /**
793
- * `propertyName` is the ref name + resolved with the nameResolver
794
- * @example import { Pet } from './Pet'
795
- *
796
- * `originalName` is the original name used(in PascalCase), only used to remove duplicates
797
- *
798
- * `pluginKey` can be used to override the current plugin being used, handy when you want to import a type/schema out of another plugin
799
- * @example import a type(plugin-ts) for a mock file(swagger-faker)
800
- */
801
- type Ref = {
802
- propertyName: string;
803
- originalName: string;
804
- path: KubbFile.Path;
805
- pluginKey?: Plugin['key'];
806
- };
807
- type Refs = Record<string, Ref>;
808
- type OperationSchema = {
809
- /**
810
- * Converted name, contains already `PathParams`, `QueryParams`, ...
811
- */
812
- name: string;
813
- schema: SchemaObject$1;
814
- operation?: Operation$1;
815
- /**
816
- * OperationName in PascalCase, only being used in OperationGenerator
817
- */
818
- operationName: string;
819
- description?: string;
820
- statusCode?: number;
821
- keys?: string[];
822
- keysToOmit?: string[];
823
- withData?: boolean;
824
- };
825
- type OperationSchemas = {
826
- pathParams?: OperationSchema & {
827
- keysToOmit?: never;
828
- };
829
- queryParams?: OperationSchema & {
830
- keysToOmit?: never;
831
- };
832
- headerParams?: OperationSchema & {
833
- keysToOmit?: never;
834
- };
835
- request?: OperationSchema;
836
- response: OperationSchema;
837
- responses: Array<OperationSchema>;
838
- statusCodes?: Array<OperationSchema>;
839
- errors?: Array<OperationSchema>;
840
- };
841
- type ByTag = {
842
- type: 'tag';
843
- pattern: string | RegExp;
844
- };
845
- type ByOperationId = {
846
- type: 'operationId';
847
- pattern: string | RegExp;
848
- };
849
- type ByPath = {
850
- type: 'path';
851
- pattern: string | RegExp;
852
- };
853
- type ByMethod = {
854
- type: 'method';
855
- pattern: HttpMethod | RegExp;
856
- };
857
- type BySchemaName = {
858
- type: 'schemaName';
859
- pattern: string | RegExp;
860
- };
861
- type ByContentType = {
862
- type: 'contentType';
863
- pattern: string | RegExp;
864
- };
865
- type Exclude$1 = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
866
- type Include = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
867
- type Override<TOptions> = (ByTag | ByOperationId | ByPath | ByMethod | BySchemaName | ByContentType) & {
868
- options: Partial<TOptions>;
869
- };
870
- //#endregion
871
901
  //#region ../plugin-oas/src/SchemaGenerator.d.ts
872
- type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
902
+ type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
873
903
  fabric: Fabric;
874
904
  oas: Oas;
875
905
  pluginManager: PluginManager;
@@ -910,7 +940,7 @@ type SchemaProps$1 = {
910
940
  name?: string;
911
941
  parentName?: string;
912
942
  };
913
- declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context$1<TOptions, TPluginOptions>> {
943
+ declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
914
944
  #private;
915
945
  refs: Refs;
916
946
  /**
@@ -925,15 +955,6 @@ declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGe
925
955
  build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
926
956
  }
927
957
  //#endregion
928
- //#region ../plugin-oas/src/generators/createGenerator.d.ts
929
- type CoreGenerator<TOptions extends PluginFactoryOptions> = {
930
- name: string;
931
- type: 'core';
932
- operations: (props: OperationsProps<TOptions>) => Promise<KubbFile.File[]>;
933
- operation: (props: OperationProps<TOptions>) => Promise<KubbFile.File[]>;
934
- schema: (props: SchemaProps<TOptions>) => Promise<KubbFile.File[]>;
935
- };
936
- //#endregion
937
958
  //#region ../plugin-oas/src/generators/createReactGenerator.d.ts
938
959
  type ReactGenerator<TOptions extends PluginFactoryOptions> = {
939
960
  name: string;
@@ -968,35 +989,14 @@ type SchemaProps<TOptions extends PluginFactoryOptions> = {
968
989
  };
969
990
  type Generator<TOptions extends PluginFactoryOptions> = CoreGenerator<TOptions> | ReactGenerator<TOptions>;
970
991
  //#endregion
971
- //#region ../plugin-oas/src/OperationGenerator.d.ts
972
- type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
973
- fabric: Fabric;
974
- oas: Oas;
975
- exclude: Array<Exclude$1> | undefined;
976
- include: Array<Include> | undefined;
977
- override: Array<Override<TOptions>> | undefined;
978
- contentType: contentType | undefined;
979
- pluginManager: PluginManager;
980
- /**
981
- * Current plugin
982
- */
983
- plugin: Plugin<TPluginOptions>;
984
- mode: KubbFile.Mode;
992
+ //#region ../plugin-oas/src/generators/createGenerator.d.ts
993
+ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
994
+ name: string;
995
+ type: 'core';
996
+ operations: (props: OperationsProps<TOptions>) => Promise<KubbFile.File[]>;
997
+ operation: (props: OperationProps<TOptions>) => Promise<KubbFile.File[]>;
998
+ schema: (props: SchemaProps<TOptions>) => Promise<KubbFile.File[]>;
985
999
  };
986
- declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context<TPluginOptions['resolvedOptions'], TPluginOptions>> {
987
- #private;
988
- getSchemas(operation: Operation$1, {
989
- resolveName
990
- }?: {
991
- resolveName?: (name: string) => string;
992
- }): OperationSchemas;
993
- getOperations(): Promise<Array<{
994
- path: string;
995
- method: HttpMethod;
996
- operation: Operation$1;
997
- }>>;
998
- build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
999
- }
1000
1000
  //#endregion
1001
1001
  //#region src/types.d.ts
1002
1002
  type Options$1 = {
@@ -1054,4 +1054,4 @@ type ResolvedOptions = {
1054
1054
  type PluginCypress = PluginFactoryOptions<'plugin-cypress', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1055
1055
  //#endregion
1056
1056
  export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginCypress as n, HttpMethod as o, ReactGenerator as r, Options$1 as t };
1057
- //# sourceMappingURL=types-DCw3J-PA.d.cts.map
1057
+ //# sourceMappingURL=types-DVje6w9z.d.cts.map
@@ -554,6 +554,133 @@ type FileMetaBase = {
554
554
  pluginKey?: Plugin['key'];
555
555
  };
556
556
  //#endregion
557
+ //#region ../plugin-oas/src/types.d.ts
558
+ type Context$2 = {
559
+ getOas(): Promise<Oas>;
560
+ getBaseURL(): Promise<string | undefined>;
561
+ };
562
+ declare global {
563
+ namespace Kubb {
564
+ interface PluginContext extends Context$2 {}
565
+ }
566
+ }
567
+ type ResolvePathOptions = {
568
+ pluginKey?: Plugin['key'];
569
+ group?: {
570
+ tag?: string;
571
+ path?: string;
572
+ };
573
+ type?: ResolveNameParams['type'];
574
+ };
575
+ /**
576
+ * `propertyName` is the ref name + resolved with the nameResolver
577
+ * @example import { Pet } from './Pet'
578
+ *
579
+ * `originalName` is the original name used(in PascalCase), only used to remove duplicates
580
+ *
581
+ * `pluginKey` can be used to override the current plugin being used, handy when you want to import a type/schema out of another plugin
582
+ * @example import a type(plugin-ts) for a mock file(swagger-faker)
583
+ */
584
+ type Ref = {
585
+ propertyName: string;
586
+ originalName: string;
587
+ path: KubbFile.Path;
588
+ pluginKey?: Plugin['key'];
589
+ };
590
+ type Refs = Record<string, Ref>;
591
+ type OperationSchema = {
592
+ /**
593
+ * Converted name, contains already `PathParams`, `QueryParams`, ...
594
+ */
595
+ name: string;
596
+ schema: SchemaObject$1;
597
+ operation?: Operation$1;
598
+ /**
599
+ * OperationName in PascalCase, only being used in OperationGenerator
600
+ */
601
+ operationName: string;
602
+ description?: string;
603
+ statusCode?: number;
604
+ keys?: string[];
605
+ keysToOmit?: string[];
606
+ withData?: boolean;
607
+ };
608
+ type OperationSchemas = {
609
+ pathParams?: OperationSchema & {
610
+ keysToOmit?: never;
611
+ };
612
+ queryParams?: OperationSchema & {
613
+ keysToOmit?: never;
614
+ };
615
+ headerParams?: OperationSchema & {
616
+ keysToOmit?: never;
617
+ };
618
+ request?: OperationSchema;
619
+ response: OperationSchema;
620
+ responses: Array<OperationSchema>;
621
+ statusCodes?: Array<OperationSchema>;
622
+ errors?: Array<OperationSchema>;
623
+ };
624
+ type ByTag = {
625
+ type: 'tag';
626
+ pattern: string | RegExp;
627
+ };
628
+ type ByOperationId = {
629
+ type: 'operationId';
630
+ pattern: string | RegExp;
631
+ };
632
+ type ByPath = {
633
+ type: 'path';
634
+ pattern: string | RegExp;
635
+ };
636
+ type ByMethod = {
637
+ type: 'method';
638
+ pattern: HttpMethod | RegExp;
639
+ };
640
+ type BySchemaName = {
641
+ type: 'schemaName';
642
+ pattern: string | RegExp;
643
+ };
644
+ type ByContentType = {
645
+ type: 'contentType';
646
+ pattern: string | RegExp;
647
+ };
648
+ type Exclude$1 = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
649
+ type Include = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
650
+ type Override<TOptions> = (ByTag | ByOperationId | ByPath | ByMethod | BySchemaName | ByContentType) & {
651
+ options: Partial<TOptions>;
652
+ };
653
+ //#endregion
654
+ //#region ../plugin-oas/src/OperationGenerator.d.ts
655
+ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
656
+ fabric: Fabric;
657
+ oas: Oas;
658
+ exclude: Array<Exclude$1> | undefined;
659
+ include: Array<Include> | undefined;
660
+ override: Array<Override<TOptions>> | undefined;
661
+ contentType: contentType | undefined;
662
+ pluginManager: PluginManager;
663
+ /**
664
+ * Current plugin
665
+ */
666
+ plugin: Plugin<TPluginOptions>;
667
+ mode: KubbFile.Mode;
668
+ };
669
+ declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
670
+ #private;
671
+ getSchemas(operation: Operation$1, {
672
+ resolveName
673
+ }?: {
674
+ resolveName?: (name: string) => string;
675
+ }): OperationSchemas;
676
+ getOperations(): Promise<Array<{
677
+ path: string;
678
+ method: HttpMethod;
679
+ operation: Operation$1;
680
+ }>>;
681
+ build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
682
+ }
683
+ //#endregion
557
684
  //#region ../plugin-oas/src/SchemaMapper.d.ts
558
685
  type SchemaKeywordMapper = {
559
686
  object: {
@@ -771,105 +898,8 @@ type Schema = {
771
898
  keyword: string;
772
899
  } | SchemaKeywordMapper[keyof SchemaKeywordMapper];
773
900
  //#endregion
774
- //#region ../plugin-oas/src/types.d.ts
775
- type Context$2 = {
776
- getOas(): Promise<Oas>;
777
- getBaseURL(): Promise<string | undefined>;
778
- };
779
- declare global {
780
- namespace Kubb {
781
- interface PluginContext extends Context$2 {}
782
- }
783
- }
784
- type ResolvePathOptions = {
785
- pluginKey?: Plugin['key'];
786
- group?: {
787
- tag?: string;
788
- path?: string;
789
- };
790
- type?: ResolveNameParams['type'];
791
- };
792
- /**
793
- * `propertyName` is the ref name + resolved with the nameResolver
794
- * @example import { Pet } from './Pet'
795
- *
796
- * `originalName` is the original name used(in PascalCase), only used to remove duplicates
797
- *
798
- * `pluginKey` can be used to override the current plugin being used, handy when you want to import a type/schema out of another plugin
799
- * @example import a type(plugin-ts) for a mock file(swagger-faker)
800
- */
801
- type Ref = {
802
- propertyName: string;
803
- originalName: string;
804
- path: KubbFile.Path;
805
- pluginKey?: Plugin['key'];
806
- };
807
- type Refs = Record<string, Ref>;
808
- type OperationSchema = {
809
- /**
810
- * Converted name, contains already `PathParams`, `QueryParams`, ...
811
- */
812
- name: string;
813
- schema: SchemaObject$1;
814
- operation?: Operation$1;
815
- /**
816
- * OperationName in PascalCase, only being used in OperationGenerator
817
- */
818
- operationName: string;
819
- description?: string;
820
- statusCode?: number;
821
- keys?: string[];
822
- keysToOmit?: string[];
823
- withData?: boolean;
824
- };
825
- type OperationSchemas = {
826
- pathParams?: OperationSchema & {
827
- keysToOmit?: never;
828
- };
829
- queryParams?: OperationSchema & {
830
- keysToOmit?: never;
831
- };
832
- headerParams?: OperationSchema & {
833
- keysToOmit?: never;
834
- };
835
- request?: OperationSchema;
836
- response: OperationSchema;
837
- responses: Array<OperationSchema>;
838
- statusCodes?: Array<OperationSchema>;
839
- errors?: Array<OperationSchema>;
840
- };
841
- type ByTag = {
842
- type: 'tag';
843
- pattern: string | RegExp;
844
- };
845
- type ByOperationId = {
846
- type: 'operationId';
847
- pattern: string | RegExp;
848
- };
849
- type ByPath = {
850
- type: 'path';
851
- pattern: string | RegExp;
852
- };
853
- type ByMethod = {
854
- type: 'method';
855
- pattern: HttpMethod | RegExp;
856
- };
857
- type BySchemaName = {
858
- type: 'schemaName';
859
- pattern: string | RegExp;
860
- };
861
- type ByContentType = {
862
- type: 'contentType';
863
- pattern: string | RegExp;
864
- };
865
- type Exclude$1 = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
866
- type Include = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
867
- type Override<TOptions> = (ByTag | ByOperationId | ByPath | ByMethod | BySchemaName | ByContentType) & {
868
- options: Partial<TOptions>;
869
- };
870
- //#endregion
871
901
  //#region ../plugin-oas/src/SchemaGenerator.d.ts
872
- type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
902
+ type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
873
903
  fabric: Fabric;
874
904
  oas: Oas;
875
905
  pluginManager: PluginManager;
@@ -910,7 +940,7 @@ type SchemaProps$1 = {
910
940
  name?: string;
911
941
  parentName?: string;
912
942
  };
913
- declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context$1<TOptions, TPluginOptions>> {
943
+ declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
914
944
  #private;
915
945
  refs: Refs;
916
946
  /**
@@ -925,15 +955,6 @@ declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGe
925
955
  build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
926
956
  }
927
957
  //#endregion
928
- //#region ../plugin-oas/src/generators/createGenerator.d.ts
929
- type CoreGenerator<TOptions extends PluginFactoryOptions> = {
930
- name: string;
931
- type: 'core';
932
- operations: (props: OperationsProps<TOptions>) => Promise<KubbFile.File[]>;
933
- operation: (props: OperationProps<TOptions>) => Promise<KubbFile.File[]>;
934
- schema: (props: SchemaProps<TOptions>) => Promise<KubbFile.File[]>;
935
- };
936
- //#endregion
937
958
  //#region ../plugin-oas/src/generators/createReactGenerator.d.ts
938
959
  type ReactGenerator<TOptions extends PluginFactoryOptions> = {
939
960
  name: string;
@@ -968,35 +989,14 @@ type SchemaProps<TOptions extends PluginFactoryOptions> = {
968
989
  };
969
990
  type Generator<TOptions extends PluginFactoryOptions> = CoreGenerator<TOptions> | ReactGenerator<TOptions>;
970
991
  //#endregion
971
- //#region ../plugin-oas/src/OperationGenerator.d.ts
972
- type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
973
- fabric: Fabric;
974
- oas: Oas;
975
- exclude: Array<Exclude$1> | undefined;
976
- include: Array<Include> | undefined;
977
- override: Array<Override<TOptions>> | undefined;
978
- contentType: contentType | undefined;
979
- pluginManager: PluginManager;
980
- /**
981
- * Current plugin
982
- */
983
- plugin: Plugin<TPluginOptions>;
984
- mode: KubbFile.Mode;
992
+ //#region ../plugin-oas/src/generators/createGenerator.d.ts
993
+ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
994
+ name: string;
995
+ type: 'core';
996
+ operations: (props: OperationsProps<TOptions>) => Promise<KubbFile.File[]>;
997
+ operation: (props: OperationProps<TOptions>) => Promise<KubbFile.File[]>;
998
+ schema: (props: SchemaProps<TOptions>) => Promise<KubbFile.File[]>;
985
999
  };
986
- declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context<TPluginOptions['resolvedOptions'], TPluginOptions>> {
987
- #private;
988
- getSchemas(operation: Operation$1, {
989
- resolveName
990
- }?: {
991
- resolveName?: (name: string) => string;
992
- }): OperationSchemas;
993
- getOperations(): Promise<Array<{
994
- path: string;
995
- method: HttpMethod;
996
- operation: Operation$1;
997
- }>>;
998
- build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
999
- }
1000
1000
  //#endregion
1001
1001
  //#region src/types.d.ts
1002
1002
  type Options$1 = {
@@ -1054,4 +1054,4 @@ type ResolvedOptions = {
1054
1054
  type PluginCypress = PluginFactoryOptions<'plugin-cypress', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1055
1055
  //#endregion
1056
1056
  export { UserPluginWithLifeCycle as a, OperationSchemas as i, PluginCypress as n, HttpMethod as o, ReactGenerator as r, Options$1 as t };
1057
- //# sourceMappingURL=types-CWu2D2ZJ.d.ts.map
1057
+ //# sourceMappingURL=types-DbU-_Igx.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-cypress",
3
- "version": "4.5.2",
3
+ "version": "4.5.4",
4
4
  "description": "Cypress test generator plugin for Kubb, creating end-to-end tests from OpenAPI specifications for automated API testing.",
5
5
  "keywords": [
6
6
  "cypress",
@@ -75,10 +75,10 @@
75
75
  ],
76
76
  "dependencies": {
77
77
  "@kubb/react-fabric": "0.2.19",
78
- "@kubb/core": "4.5.2",
79
- "@kubb/oas": "4.5.2",
80
- "@kubb/plugin-oas": "4.5.2",
81
- "@kubb/plugin-ts": "4.5.2"
78
+ "@kubb/core": "4.5.4",
79
+ "@kubb/oas": "4.5.4",
80
+ "@kubb/plugin-oas": "4.5.4",
81
+ "@kubb/plugin-ts": "4.5.4"
82
82
  },
83
83
  "devDependencies": {},
84
84
  "peerDependencies": {