@valiantys/atlassian-app-frontend 3.0.0-alpha-1 → 3.0.0-alpha-3

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 (29) hide show
  1. package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.cjs.js +2 -2
  2. package/atlassian/forge/shared/util-product-fetch/src/lib/product-fetch/index.es.js +17 -16
  3. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -1
  4. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +26 -8
  5. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js +1 -1
  6. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js +14 -15
  7. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.cjs.js +1 -1
  8. package/atlassian/shared/frontend-ui-iframe/src/lib/iframe-wrapper.module.scss/index.es.js +1 -1
  9. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.cjs.js +1 -1
  10. package/atlassian/shared/frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.es.js +5 -5
  11. package/atlassian-app-frontend.css +1 -1
  12. package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +133 -0
  13. package/data-access-issue/atlassian-app-frontend.api.md +9 -0
  14. package/data-access-issue/index.d.ts +90 -31
  15. package/package.json +6 -1
  16. package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -2
  17. package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +36 -30
  18. package/ui-iframe/atlassian-app-frontend-ui-iframe.api.json +376 -0
  19. package/ui-iframe/atlassian-app-frontend.api.md +30 -0
  20. package/ui-iframe/index.cjs.js +1 -0
  21. package/ui-iframe/index.d.ts +16 -0
  22. package/ui-iframe/index.es.js +4 -0
  23. package/ui-iframe/tsdoc-metadata.json +11 -0
  24. package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +113 -7
  25. package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +10 -3
  26. package/util-atlassian-product-fetch/index.d.ts +8 -3
  27. package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +1020 -127
  28. package/util-jira-v3-api/atlassian-app-frontend.api.md +122 -31
  29. package/util-jira-v3-api/index.d.ts +88 -31
@@ -736,7 +736,16 @@
736
736
  "excerptTokens": [
737
737
  {
738
738
  "kind": "Content",
739
- "text": "export declare class FetchError "
739
+ "text": "export declare class FetchError extends "
740
+ },
741
+ {
742
+ "kind": "Reference",
743
+ "text": "Error",
744
+ "canonicalReference": "!Error:interface"
745
+ },
746
+ {
747
+ "kind": "Content",
748
+ "text": " "
740
749
  }
741
750
  ],
742
751
  "fileUrlPath": "../../../shared/util-fetch/src/lib/shared-util-fetch.d.ts",
@@ -752,7 +761,23 @@
752
761
  "excerptTokens": [
753
762
  {
754
763
  "kind": "Content",
755
- "text": "constructor(message: "
764
+ "text": "constructor(statusText: "
765
+ },
766
+ {
767
+ "kind": "Content",
768
+ "text": "string"
769
+ },
770
+ {
771
+ "kind": "Content",
772
+ "text": ", statusCode?: "
773
+ },
774
+ {
775
+ "kind": "Content",
776
+ "text": "number | undefined"
777
+ },
778
+ {
779
+ "kind": "Content",
780
+ "text": ", message?: "
756
781
  },
757
782
  {
758
783
  "kind": "Content",
@@ -768,23 +793,69 @@
768
793
  "overloadIndex": 1,
769
794
  "parameters": [
770
795
  {
771
- "parameterName": "message",
796
+ "parameterName": "statusText",
772
797
  "parameterTypeTokenRange": {
773
798
  "startIndex": 1,
774
799
  "endIndex": 2
775
800
  },
776
801
  "isOptional": false
802
+ },
803
+ {
804
+ "parameterName": "statusCode",
805
+ "parameterTypeTokenRange": {
806
+ "startIndex": 3,
807
+ "endIndex": 4
808
+ },
809
+ "isOptional": true
810
+ },
811
+ {
812
+ "parameterName": "message",
813
+ "parameterTypeTokenRange": {
814
+ "startIndex": 5,
815
+ "endIndex": 6
816
+ },
817
+ "isOptional": true
777
818
  }
778
819
  ]
779
820
  },
780
821
  {
781
822
  "kind": "Property",
782
- "canonicalReference": "@valiantys/atlassian-app-frontend!FetchError#message:member",
823
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FetchError#statusCode:member",
783
824
  "docComment": "",
784
825
  "excerptTokens": [
785
826
  {
786
827
  "kind": "Content",
787
- "text": "message: "
828
+ "text": "readonly statusCode?: "
829
+ },
830
+ {
831
+ "kind": "Content",
832
+ "text": "number | undefined"
833
+ },
834
+ {
835
+ "kind": "Content",
836
+ "text": ";"
837
+ }
838
+ ],
839
+ "isReadonly": true,
840
+ "isOptional": true,
841
+ "releaseTag": "Public",
842
+ "name": "statusCode",
843
+ "propertyTypeTokenRange": {
844
+ "startIndex": 1,
845
+ "endIndex": 2
846
+ },
847
+ "isStatic": false,
848
+ "isProtected": false,
849
+ "isAbstract": false
850
+ },
851
+ {
852
+ "kind": "Property",
853
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FetchError#statusText:member",
854
+ "docComment": "",
855
+ "excerptTokens": [
856
+ {
857
+ "kind": "Content",
858
+ "text": "readonly statusText: "
788
859
  },
789
860
  {
790
861
  "kind": "Content",
@@ -795,10 +866,10 @@
795
866
  "text": ";"
796
867
  }
797
868
  ],
798
- "isReadonly": false,
869
+ "isReadonly": true,
799
870
  "isOptional": false,
800
871
  "releaseTag": "Public",
801
- "name": "message",
872
+ "name": "statusText",
802
873
  "propertyTypeTokenRange": {
803
874
  "startIndex": 1,
804
875
  "endIndex": 2
@@ -806,8 +877,43 @@
806
877
  "isStatic": false,
807
878
  "isProtected": false,
808
879
  "isAbstract": false
880
+ },
881
+ {
882
+ "kind": "Method",
883
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FetchError#toJSON:member(1)",
884
+ "docComment": "",
885
+ "excerptTokens": [
886
+ {
887
+ "kind": "Content",
888
+ "text": "toJSON(): "
889
+ },
890
+ {
891
+ "kind": "Content",
892
+ "text": "{\n statusCode: number | undefined;\n statusText: string;\n }"
893
+ },
894
+ {
895
+ "kind": "Content",
896
+ "text": ";"
897
+ }
898
+ ],
899
+ "isStatic": false,
900
+ "returnTypeTokenRange": {
901
+ "startIndex": 1,
902
+ "endIndex": 2
903
+ },
904
+ "releaseTag": "Public",
905
+ "isProtected": false,
906
+ "overloadIndex": 1,
907
+ "parameters": [],
908
+ "isOptional": false,
909
+ "isAbstract": false,
910
+ "name": "toJSON"
809
911
  }
810
912
  ],
913
+ "extendsTokenRange": {
914
+ "startIndex": 1,
915
+ "endIndex": 2
916
+ },
811
917
  "implementsTokenRanges": []
812
918
  },
813
919
  {
@@ -33,10 +33,17 @@ export function bearerAuthFetch<T>(authToken: string, url: string, method: Fetch
33
33
  export function bearerAuthFetchRaw(authToken: string, url: string, init: RequestInit): Promise<Response>;
34
34
 
35
35
  // @public (undocumented)
36
- export class FetchError {
37
- constructor(message: string);
36
+ export class FetchError extends Error {
37
+ constructor(statusText: string, statusCode?: number | undefined, message?: string);
38
38
  // (undocumented)
39
- message: string;
39
+ readonly statusCode?: number | undefined;
40
+ // (undocumented)
41
+ readonly statusText: string;
42
+ // (undocumented)
43
+ toJSON(): {
44
+ statusCode: number | undefined;
45
+ statusText: string;
46
+ };
40
47
  }
41
48
 
42
49
  // @public (undocumented)
@@ -16,9 +16,14 @@ export declare function bearerAuthFetch<T>(authToken: string, url: string, metho
16
16
 
17
17
  export declare function bearerAuthFetchRaw(authToken: string, url: string, init: RequestInit): Promise<Response>;
18
18
 
19
- export declare class FetchError {
20
- message: string;
21
- constructor(message: string);
19
+ export declare class FetchError extends Error {
20
+ readonly statusText: string;
21
+ readonly statusCode?: number | undefined;
22
+ constructor(statusText: string, statusCode?: number | undefined, message?: string);
23
+ toJSON(): {
24
+ statusCode: number | undefined;
25
+ statusText: string;
26
+ };
22
27
  }
23
28
 
24
29
  export declare type FetchMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH';