@odg/chemical-x 2.4.0 → 2.6.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 (114) hide show
  1. package/agents.md +1 -1
  2. package/dist/Container.d.ts +1 -0
  3. package/dist/Container.d.ts.map +1 -0
  4. package/dist/Enums/RetryAction.d.ts +1 -0
  5. package/dist/Enums/RetryAction.d.ts.map +1 -0
  6. package/dist/Enums/index.d.ts +1 -0
  7. package/dist/Enums/index.d.ts.map +1 -0
  8. package/dist/Exceptions/InvalidArgumentException.d.ts +1 -0
  9. package/dist/Exceptions/InvalidArgumentException.d.ts.map +1 -0
  10. package/dist/Exceptions/MoneyMultipleResultException.d.ts +1 -0
  11. package/dist/Exceptions/MoneyMultipleResultException.d.ts.map +1 -0
  12. package/dist/Exceptions/MoneyNotFoundException.d.ts +1 -0
  13. package/dist/Exceptions/MoneyNotFoundException.d.ts.map +1 -0
  14. package/dist/Exceptions/RetryException.d.ts +1 -0
  15. package/dist/Exceptions/RetryException.d.ts.map +1 -0
  16. package/dist/Exceptions/TimeoutException.d.ts +1 -0
  17. package/dist/Exceptions/TimeoutException.d.ts.map +1 -0
  18. package/dist/Exceptions/index.d.ts +1 -0
  19. package/dist/Exceptions/index.d.ts.map +1 -0
  20. package/dist/Helpers/index.d.ts +1 -0
  21. package/dist/Helpers/index.d.ts.map +1 -0
  22. package/dist/Helpers/retry.d.ts +1 -0
  23. package/dist/Helpers/retry.d.ts.map +1 -0
  24. package/dist/Helpers/sleep.d.ts +1 -0
  25. package/dist/Helpers/sleep.d.ts.map +1 -0
  26. package/dist/Helpers/throw-if.d.ts +1 -0
  27. package/dist/Helpers/throw-if.d.ts.map +1 -0
  28. package/dist/Helpers/timeout.d.ts +1 -0
  29. package/dist/Helpers/timeout.d.ts.map +1 -0
  30. package/dist/Interfaces/AttemptableFlow.d.ts +1 -0
  31. package/dist/Interfaces/AttemptableFlow.d.ts.map +1 -0
  32. package/dist/Interfaces/CloneableInterface.d.ts +1 -0
  33. package/dist/Interfaces/CloneableInterface.d.ts.map +1 -0
  34. package/dist/Interfaces/GetterInterface.d.ts +1 -0
  35. package/dist/Interfaces/GetterInterface.d.ts.map +1 -0
  36. package/dist/Interfaces/NativeInterface.d.ts +1 -0
  37. package/dist/Interfaces/NativeInterface.d.ts.map +1 -0
  38. package/dist/Interfaces/RetryInterface.d.ts +1 -0
  39. package/dist/Interfaces/RetryInterface.d.ts.map +1 -0
  40. package/dist/Interfaces/TimeoutInterface.d.ts +1 -0
  41. package/dist/Interfaces/TimeoutInterface.d.ts.map +1 -0
  42. package/dist/Interfaces/index.d.ts +1 -0
  43. package/dist/Interfaces/index.d.ts.map +1 -0
  44. package/dist/Interfaces/internal/ContainerInterface.d.ts +1 -0
  45. package/dist/Interfaces/internal/ContainerInterface.d.ts.map +1 -0
  46. package/dist/Support/Arr.d.ts +1 -0
  47. package/dist/Support/Arr.d.ts.map +1 -0
  48. package/dist/Support/Decorators/OdgDecorators.d.ts +1 -0
  49. package/dist/Support/Decorators/OdgDecorators.d.ts.map +1 -0
  50. package/dist/Support/Decorators/index.d.ts +1 -0
  51. package/dist/Support/Decorators/index.d.ts.map +1 -0
  52. package/dist/Support/File.d.ts +1 -0
  53. package/dist/Support/File.d.ts.map +1 -0
  54. package/dist/Support/Num.d.ts +1 -0
  55. package/dist/Support/Num.d.ts.map +1 -0
  56. package/dist/Support/Str.d.ts +56 -0
  57. package/dist/Support/Str.d.ts.map +1 -0
  58. package/dist/Support/Str.js +88 -0
  59. package/dist/Support/Str.js.map +1 -1
  60. package/dist/Support/index.d.ts +1 -0
  61. package/dist/Support/index.d.ts.map +1 -0
  62. package/dist/crawler/@types/Browser.d.ts +1 -0
  63. package/dist/crawler/@types/Browser.d.ts.map +1 -0
  64. package/dist/crawler/@types/Context.d.ts +1 -0
  65. package/dist/crawler/@types/Context.d.ts.map +1 -0
  66. package/dist/crawler/@types/ManagerBrowserType.d.ts +1 -0
  67. package/dist/crawler/@types/ManagerBrowserType.d.ts.map +1 -0
  68. package/dist/crawler/@types/Page.d.ts +1 -0
  69. package/dist/crawler/@types/Page.d.ts.map +1 -0
  70. package/dist/crawler/@types/index.d.ts +1 -0
  71. package/dist/crawler/@types/index.d.ts.map +1 -0
  72. package/dist/crawler/Browser.d.ts +1 -0
  73. package/dist/crawler/Browser.d.ts.map +1 -0
  74. package/dist/crawler/BrowserManager.d.ts +1 -0
  75. package/dist/crawler/BrowserManager.d.ts.map +1 -0
  76. package/dist/crawler/Context.d.ts +1 -0
  77. package/dist/crawler/Context.d.ts.map +1 -0
  78. package/dist/crawler/Exceptions/BrowserException.d.ts +1 -0
  79. package/dist/crawler/Exceptions/BrowserException.d.ts.map +1 -0
  80. package/dist/crawler/Exceptions/BrowserInstanceException.d.ts +1 -0
  81. package/dist/crawler/Exceptions/BrowserInstanceException.d.ts.map +1 -0
  82. package/dist/crawler/Exceptions/index.d.ts +1 -0
  83. package/dist/crawler/Exceptions/index.d.ts.map +1 -0
  84. package/dist/crawler/Handlers/BaseHandler.d.ts +2 -1
  85. package/dist/crawler/Handlers/BaseHandler.d.ts.map +1 -0
  86. package/dist/crawler/Handlers/index.d.ts +1 -0
  87. package/dist/crawler/Handlers/index.d.ts.map +1 -0
  88. package/dist/crawler/Interfaces/HandlerInterface.d.ts +1 -0
  89. package/dist/crawler/Interfaces/HandlerInterface.d.ts.map +1 -0
  90. package/dist/crawler/Interfaces/PageInterface.d.ts +1 -0
  91. package/dist/crawler/Interfaces/PageInterface.d.ts.map +1 -0
  92. package/dist/crawler/Interfaces/index.d.ts +1 -0
  93. package/dist/crawler/Interfaces/index.d.ts.map +1 -0
  94. package/dist/crawler/Page.d.ts +1 -0
  95. package/dist/crawler/Page.d.ts.map +1 -0
  96. package/dist/crawler/Pages/BasePage.d.ts +2 -1
  97. package/dist/crawler/Pages/BasePage.d.ts.map +1 -0
  98. package/dist/crawler/Pages/Components/BaseComponentPage.d.ts +1 -0
  99. package/dist/crawler/Pages/Components/BaseComponentPage.d.ts.map +1 -0
  100. package/dist/crawler/Pages/index.d.ts +1 -0
  101. package/dist/crawler/Pages/index.d.ts.map +1 -0
  102. package/dist/crawler/Selectors/SelectorsType.d.ts +5 -2
  103. package/dist/crawler/Selectors/SelectorsType.d.ts.map +1 -0
  104. package/dist/crawler/index.d.ts +1 -0
  105. package/dist/crawler/index.d.ts.map +1 -0
  106. package/dist/index.d.ts +1 -0
  107. package/dist/index.d.ts.map +1 -0
  108. package/dist/tsconfig.build.tsbuildinfo +1 -1
  109. package/dist/types/GenericType.d.ts +1 -0
  110. package/dist/types/GenericType.d.ts.map +1 -0
  111. package/dist/types/index.d.ts +1 -0
  112. package/dist/types/index.d.ts.map +1 -0
  113. package/docs/crawlers.md +2 -2
  114. package/package.json +11 -11
@@ -6,7 +6,7 @@ import type { SelectorType } from "../Selectors/SelectorsType";
6
6
  export declare abstract class BaseHandler<PageClassEngine extends PageEngineInterface> implements HandlerInterface {
7
7
  currentAttempt: number;
8
8
  page?: PageClassEngine;
9
- abstract readonly $$s: Record<number | string | symbol, SelectorType>;
9
+ abstract readonly $$s: SelectorType;
10
10
  setPage(page: PageClassEngine): this;
11
11
  /**
12
12
  * Called if the handler completes successfully.
@@ -81,3 +81,4 @@ export declare abstract class BaseHandler<PageClassEngine extends PageEngineInte
81
81
  */
82
82
  abstract attempt(): Promise<number>;
83
83
  }
84
+ //# sourceMappingURL=BaseHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseHandler.d.ts","sourceRoot":"","sources":["../../../src/crawler/Handlers/BaseHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,OAAO,KAAK,EACR,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACtB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,8BAAsB,WAAW,CAC7B,eAAe,SAAS,mBAAmB,CAC7C,YAAW,gBAAgB;IAElB,cAAc,EAAE,MAAM,CAAK;IAE3B,IAAI,CAAC,EAAE,eAAe,CAAC;IAE9B,kBAAyB,GAAG,EAAE,YAAY,CAAC;IAEpC,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI;IAM3C;;;;;OAKG;IACI,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAEhC;;;;;;OAMG;IACI,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAEpD;;;;;;;;OAQG;IACI,QAAQ,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAE7E;;;;;;;;OAQG;IACI,OAAO,CAAC,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAEpD;;;;;;OAMG;IACI,KAAK,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC;IAEhC;;;;OAIG;IACU,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBrC;;;;OAIG;IACU,eAAe,IAAI,OAAO,CAAC,mBAAmB,CAAC;YAI9C,sBAAsB;IAwBpC;;;;;;OAMG;aACa,cAAc,IAAI,OAAO,CAAC,eAAe,CAAC;IAE1D;;;;;;OAMG;aACa,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;CAE7C"}
@@ -1 +1,2 @@
1
1
  export * from "./BaseHandler";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/crawler/Handlers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -59,3 +59,4 @@ export interface HandlerInterface extends AttemptableInterface {
59
59
  */
60
60
  waitForHandler(): Promise<HandlerFunction>;
61
61
  }
62
+ //# sourceMappingURL=HandlerInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HandlerInterface.d.ts","sourceRoot":"","sources":["../../../src/crawler/Interfaces/HandlerInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAE5G;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,CAAC,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAE/E,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAE1D;;;;;;;;;OASG;IACH,cAAc,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;CAE9C"}
@@ -1,3 +1,4 @@
1
1
  import type { AttemptableInterface } from "../../Interfaces";
2
2
  export interface PageInterface extends AttemptableInterface {
3
3
  }
4
+ //# sourceMappingURL=PageInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageInterface.d.ts","sourceRoot":"","sources":["../../../src/crawler/Interfaces/PageInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,aAAc,SAAQ,oBAAoB;CAE1D"}
@@ -1,2 +1,3 @@
1
1
  export type * from "./PageInterface";
2
2
  export type * from "./HandlerInterface";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/crawler/Interfaces/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,iBAAiB,CAAC;AAErC,mBAAmB,oBAAoB,CAAC"}
@@ -6,3 +6,4 @@ export declare class Page<ContextClassEngine extends ContextEngineInterface, Pag
6
6
  context(): ContextChemicalXInterface<ContextClassEngine> & ContextClassEngine;
7
7
  __get(key: PropertyKey): unknown;
8
8
  }
9
+ //# sourceMappingURL=Page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../src/crawler/Page.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,yBAAyB,EACzB,sBAAsB,EACtB,KAAK,qBAAqB,EAE1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EAC3B,MAAM,IAAI,CAAC;AAEZ,qBACa,IAAI,CACb,kBAAkB,SAAS,sBAAsB,EACjD,eAAe,SAAS,mBAAmB,CAC7C,YAAW,qBAAqB,EAAE,sBAAsB,CAAC,eAAe,CAAC;aAGnD,QAAQ,EAAE,yBAAyB,CAAC,kBAAkB,CAAC;aACvD,aAAa,EAAE,eAAe;gBAD9B,QAAQ,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,EACvD,aAAa,EAAE,eAAe;IAK3C,OAAO,IAAI,yBAAyB,CAAC,kBAAkB,CAAC,GAAG,kBAAkB;IAI7E,KAAK,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO;CAY1C"}
@@ -18,7 +18,7 @@ export declare abstract class BasePage<PageClassEngine extends PageEngineInterfa
18
18
  * @memberof BasePage
19
19
  */
20
20
  abstract readonly $s?: SelectorType;
21
- abstract readonly $$s?: Record<number | string | symbol, SelectorType>;
21
+ abstract readonly $$s?: SelectorType;
22
22
  setPage(page: PageClassEngine): this;
23
23
  success?(): Promise<void>;
24
24
  finish?(exception?: Exception): Promise<void>;
@@ -28,3 +28,4 @@ export declare abstract class BasePage<PageClassEngine extends PageEngineInterfa
28
28
  abstract execute(): Promise<void>;
29
29
  abstract attempt(): Promise<number>;
30
30
  }
31
+ //# sourceMappingURL=BasePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasePage.d.ts","sourceRoot":"","sources":["../../../src/crawler/Pages/BasePage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,8BAAsB,QAAQ,CAC1B,eAAe,SAAS,mBAAmB,CAC7C,YAAW,aAAa;IAEtB;;;;;OAKG;IACI,cAAc,EAAE,MAAM,CAAK;IAE3B,IAAI,CAAC,EAAE,eAAe,CAAC;IAE9B;;;;;OAKG;IACH,kBAAyB,EAAE,CAAC,EAAE,YAAY,CAAC;IAE3C,kBAAyB,GAAG,CAAC,EAAE,YAAY,CAAC;IAErC,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI;IAMpC,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzB,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAE7C,OAAO,CAAC,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAE7C,QAAQ,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAEtE,KAAK,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC;aAEhB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;aAExB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;CAE7C"}
@@ -2,3 +2,4 @@ import type { PageEngineInterface } from "../../index";
2
2
  import { BasePage } from "../BasePage";
3
3
  export declare abstract class BaseComponentPage<PageClassEngine extends PageEngineInterface> extends BasePage<PageClassEngine> {
4
4
  }
5
+ //# sourceMappingURL=BaseComponentPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseComponentPage.d.ts","sourceRoot":"","sources":["../../../../src/crawler/Pages/Components/BaseComponentPage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,8BAAsB,iBAAiB,CACnC,eAAe,SAAS,mBAAmB,CAC7C,SAAQ,QAAQ,CAAC,eAAe,CAAC;CAElC"}
@@ -1,2 +1,3 @@
1
1
  export * from "./BasePage";
2
2
  export * from "./Components/BaseComponentPage";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/crawler/Pages/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,cAAc,gCAAgC,CAAC"}
@@ -1,3 +1,6 @@
1
- export type SelectorValuesType = Record<string, SelectorType | string> | string;
2
- export interface SelectorType extends Record<string, SelectorValuesType> {
1
+ type SelectorValuesType = Record<string, RegExp | SelectorBasedType | string> | RegExp | string;
2
+ interface SelectorBasedType extends Record<string, SelectorValuesType> {
3
3
  }
4
+ export type SelectorType = Record<number | string | symbol, SelectorValuesType>;
5
+ export {};
6
+ //# sourceMappingURL=SelectorsType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectorsType.d.ts","sourceRoot":"","sources":["../../../src/crawler/Selectors/SelectorsType.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,GAAG,MAAM,CAAC,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhG,UAAU,iBAAkB,SAAQ,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC;CACrE;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,kBAAkB,CAAC,CAAC"}
@@ -6,3 +6,4 @@ export * from "./Handlers";
6
6
  export type * from "./@types";
7
7
  export * from "./Pages";
8
8
  export type * from "./Selectors/SelectorsType";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/crawler/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,WAAW,CAAC;AAE1B,cAAc,WAAW,CAAC;AAE1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,YAAY,CAAC;AAE3B,mBAAmB,UAAU,CAAC;AAE9B,cAAc,SAAS,CAAC;AAExB,mBAAmB,2BAA2B,CAAC"}
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export type * from "./Interfaces";
5
5
  export * from "./Exceptions";
6
6
  export * from "./Enums";
7
7
  export * from "./Container";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAE1B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAEhC,mBAAmB,cAAc,CAAC;AAElC,cAAc,cAAc,CAAC;AAE7B,cAAc,SAAS,CAAC;AAExB,cAAc,aAAa,CAAC"}