@fill-easy/api 1.0.28 → 1.0.29

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 (2) hide show
  1. package/dist/openapi.d.ts +118 -11
  2. package/package.json +1 -1
package/dist/openapi.d.ts CHANGED
@@ -880,9 +880,11 @@ export interface paths {
880
880
  * Request
881
881
  * @description This endpoint may retrieve the company JSON and document via two methods:
882
882
  *
883
+ * For a full list of Country Coverage, please check out /readme .
884
+ *
883
885
  * #### Automated retrieval using Company ID for supported countries
884
886
  *
885
- * If the country supplied in `countryCode` is in the [AutomatedCountry](/models) Model,
887
+ * If the country supplied in `countryCode` is automated according to Country Coverage table,
886
888
  * and the supplied `companyId` is valid, the system will automatically fetch the document.
887
889
  *
888
890
  * In order to ensure a valid `companyId`, please validate using `/cra/{countryCode}/search/companies`.
@@ -1038,6 +1040,27 @@ export interface paths {
1038
1040
  patch?: never;
1039
1041
  trace?: never;
1040
1042
  };
1043
+ "/cra/info": {
1044
+ parameters: {
1045
+ query?: never;
1046
+ header?: never;
1047
+ path?: never;
1048
+ cookie?: never;
1049
+ };
1050
+ /**
1051
+ * Get CRA Country Information
1052
+ * @description Returns metadata and a list of all countries supported by the CRA service,
1053
+ * including their automation status, available search capabilities, and report contents.
1054
+ */
1055
+ get: operations["craInfo"];
1056
+ put?: never;
1057
+ post?: never;
1058
+ delete?: never;
1059
+ options?: never;
1060
+ head?: never;
1061
+ patch?: never;
1062
+ trace?: never;
1063
+ };
1041
1064
  "/uaepass/request/auth": {
1042
1065
  parameters: {
1043
1066
  query?: never;
@@ -1195,11 +1218,49 @@ export interface paths {
1195
1218
  export type webhooks = Record<string, never>;
1196
1219
  export interface components {
1197
1220
  schemas: {
1198
- /**
1199
- * @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code for regions with fully automated support.
1200
- * @enum {string}
1201
- */
1202
- AutomatedCountry: "HK" | "AU" | "CN";
1221
+ Country: {
1222
+ /**
1223
+ * @description Country name
1224
+ * @example Hong Kong
1225
+ */
1226
+ name: string;
1227
+ /**
1228
+ * @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code.
1229
+ * @example HK
1230
+ */
1231
+ code: string;
1232
+ /**
1233
+ * @description Geographic region
1234
+ * @example Asia
1235
+ */
1236
+ region: string;
1237
+ /**
1238
+ * @description ISO 639-1 language code for the source language of documents
1239
+ * @example en
1240
+ */
1241
+ sourceLanguage: string;
1242
+ /**
1243
+ * @description Whether the country is fully automated or requires manual processing
1244
+ * @enum {string}
1245
+ */
1246
+ status: "automated" | "manual";
1247
+ search: {
1248
+ /** @description Whether document search is available */
1249
+ documents: boolean;
1250
+ /** @description Whether company name search is available */
1251
+ companies: boolean;
1252
+ /** @description Whether company ID lookup is available */
1253
+ company: boolean;
1254
+ };
1255
+ contents: {
1256
+ /** @description Whether registration information is available */
1257
+ registration: boolean;
1258
+ /** @description Whether shareholder information is available */
1259
+ sharedholder: boolean;
1260
+ /** @description Whether financial information is available */
1261
+ financial: boolean;
1262
+ };
1263
+ };
1203
1264
  Error: {
1204
1265
  /**
1205
1266
  * @description Error message
@@ -3179,7 +3240,7 @@ export interface operations {
3179
3240
  /** @description Company ID (e.g., BRN for Hong Kong, ACN for Australia) */
3180
3241
  companyId?: string;
3181
3242
  /** @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code (case insensitive) */
3182
- countryCode: components["schemas"]["AutomatedCountry"] | string;
3243
+ countryCode: string;
3183
3244
  /**
3184
3245
  * @description Type of document
3185
3246
  * @default companySearch
@@ -3469,7 +3530,7 @@ export interface operations {
3469
3530
  header?: never;
3470
3531
  path: {
3471
3532
  /** @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code in lowercase. */
3472
- countryCode: "hk" | "cn" | "au" | "sg" | "ky" | "th" | "us" | "bm" | "kh" | "ph";
3533
+ countryCode: string;
3473
3534
  };
3474
3535
  cookie?: never;
3475
3536
  };
@@ -3518,7 +3579,7 @@ export interface operations {
3518
3579
  header?: never;
3519
3580
  path: {
3520
3581
  /** @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code. */
3521
- countryCode: "hk" | "ph";
3582
+ countryCode: string;
3522
3583
  };
3523
3584
  cookie?: never;
3524
3585
  };
@@ -3535,7 +3596,7 @@ export interface operations {
3535
3596
  */
3536
3597
  documentType?: "financialStatement" | "annualReturn" | "GIS" | "AFS";
3537
3598
  /** @description Optional filter by year */
3538
- documentYear?: number;
3599
+ documentYear?: string;
3539
3600
  };
3540
3601
  };
3541
3602
  };
@@ -3602,7 +3663,7 @@ export interface operations {
3602
3663
  header?: never;
3603
3664
  path: {
3604
3665
  /** @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code. */
3605
- countryCode: "hk" | "au" | "sg" | "th" | "us" | "kh" | "ph";
3666
+ countryCode: string;
3606
3667
  };
3607
3668
  cookie?: never;
3608
3669
  };
@@ -3648,6 +3709,52 @@ export interface operations {
3648
3709
  };
3649
3710
  };
3650
3711
  };
3712
+ craInfo: {
3713
+ parameters: {
3714
+ query?: never;
3715
+ header?: never;
3716
+ path?: never;
3717
+ cookie?: never;
3718
+ };
3719
+ requestBody?: never;
3720
+ responses: {
3721
+ /** @description Successfully retrieved CRA country information */
3722
+ 200: {
3723
+ headers: {
3724
+ [name: string]: unknown;
3725
+ };
3726
+ content: {
3727
+ "application/json": {
3728
+ meta: {
3729
+ /** @description Total number of countries */
3730
+ totalCountries: number;
3731
+ /** @description Number of automated countries */
3732
+ automated: number;
3733
+ /** @description Number of manual countries */
3734
+ manual: number;
3735
+ /** @description Number of countries with at least one search capability */
3736
+ searchable: number;
3737
+ };
3738
+ countries: components["schemas"]["Country"][];
3739
+ };
3740
+ };
3741
+ };
3742
+ /** @description Bad Request */
3743
+ 400: {
3744
+ headers: {
3745
+ [name: string]: unknown;
3746
+ };
3747
+ content?: never;
3748
+ };
3749
+ /** @description Internal server error */
3750
+ 500: {
3751
+ headers: {
3752
+ [name: string]: unknown;
3753
+ };
3754
+ content?: never;
3755
+ };
3756
+ };
3757
+ };
3651
3758
  uaepassAuth: {
3652
3759
  parameters: {
3653
3760
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fill-easy/api",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for Fill Easy API",
6
6
  "main": "dist/index.js",