@epilot/pricing-client 3.47.3 → 3.48.0-alpha.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.
package/dist/openapi.d.ts CHANGED
@@ -464,6 +464,10 @@ declare namespace Components {
464
464
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
465
465
  */
466
466
  description?: string;
467
+ /**
468
+ * A detailed description of the price. This is shown on the order document and order table.
469
+ */
470
+ long_description?: string;
467
471
  price_mappings?: /**
468
472
  * example:
469
473
  * [
@@ -778,6 +782,10 @@ declare namespace Components {
778
782
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
779
783
  */
780
784
  description?: string;
785
+ /**
786
+ * A detailed description of the price. This is shown on the order document and order table.
787
+ */
788
+ long_description?: string;
781
789
  /**
782
790
  * Price mapping information required to compute totals
783
791
  */
@@ -927,6 +935,10 @@ declare namespace Components {
927
935
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
928
936
  */
929
937
  description?: string;
938
+ /**
939
+ * A detailed description of the price. This is shown on the order document and order table.
940
+ */
941
+ long_description?: string;
930
942
  price_mappings?: /**
931
943
  * example:
932
944
  * [
@@ -1109,9 +1121,6 @@ declare namespace Components {
1109
1121
  */
1110
1122
  Coupon)[];
1111
1123
  }
1112
- /**
1113
- * The basic auth credentials
1114
- */
1115
1124
  export interface BasicAuthCredentials {
1116
1125
  /**
1117
1126
  * The username
@@ -1125,6 +1134,21 @@ declare namespace Components {
1125
1134
  * 123456
1126
1135
  */
1127
1136
  password: string;
1137
+ }
1138
+ export interface BasicAuthIntegration {
1139
+ /**
1140
+ * The username
1141
+ * example:
1142
+ * username
1143
+ */
1144
+ username: string;
1145
+ /**
1146
+ * The password
1147
+ * example:
1148
+ * 123456
1149
+ */
1150
+ password: string;
1151
+ auth_type?: "basic_auth";
1128
1152
  /**
1129
1153
  * The base URL
1130
1154
  * example:
@@ -1596,6 +1620,10 @@ declare namespace Components {
1596
1620
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
1597
1621
  */
1598
1622
  description?: string;
1623
+ /**
1624
+ * A detailed description of the price. This is shown on the order document and order table.
1625
+ */
1626
+ long_description?: string;
1599
1627
  price_mappings?: /**
1600
1628
  * example:
1601
1629
  * [
@@ -1922,6 +1950,10 @@ declare namespace Components {
1922
1950
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
1923
1951
  */
1924
1952
  description?: string;
1953
+ /**
1954
+ * A detailed description of the price. This is shown on the order document and order table.
1955
+ */
1956
+ long_description?: string;
1925
1957
  price_mappings?: /**
1926
1958
  * example:
1927
1959
  * [
@@ -2831,7 +2863,11 @@ declare namespace Components {
2831
2863
  bidding_zone: /* The bidding zone for a spot market price. */ SpotMarketBiddingZone;
2832
2864
  prices: /* A market price at a given point in time. */ HistoricMarketPriceRecord[];
2833
2865
  }
2834
- export type IntegrationCredentialsResult = /* The basic auth credentials */ BasicAuthCredentials;
2866
+ /**
2867
+ * The auth credentials for external integrations
2868
+ */
2869
+ export type IntegrationAuthCredentials = /* The auth credentials for external integrations */ BasicAuthIntegration | OAuthIntegration;
2870
+ export type IntegrationCredentialsResult = /* The auth credentials for external integrations */ IntegrationAuthCredentials;
2835
2871
  export type IntegrationId = "getag" | "ikom";
2836
2872
  export interface JourneyContext {
2837
2873
  /**
@@ -2919,6 +2955,64 @@ declare namespace Components {
2919
2955
  */
2920
2956
  value?: string;
2921
2957
  })[];
2958
+ export interface OAuthCredentials {
2959
+ /**
2960
+ * The OAuth client ID
2961
+ * example:
2962
+ * client_id_123
2963
+ */
2964
+ client_id: string;
2965
+ /**
2966
+ * The OAuth client secret
2967
+ * example:
2968
+ * client_secret_456
2969
+ */
2970
+ client_secret: string;
2971
+ /**
2972
+ * The URL to obtain OAuth tokens
2973
+ * example:
2974
+ * https://api.example.com/oauth/token
2975
+ */
2976
+ authorization_url: string;
2977
+ /**
2978
+ * The OAuth grant type
2979
+ */
2980
+ grant_type: "client_credentials";
2981
+ /**
2982
+ * The OAuth scope
2983
+ * example:
2984
+ * read:user write:user
2985
+ */
2986
+ scope?: string;
2987
+ /**
2988
+ * The OAuth access token
2989
+ * example:
2990
+ * access_token_789
2991
+ */
2992
+ access_token?: string;
2993
+ /**
2994
+ * The expiration time of the OAuth access token in seconds
2995
+ * example:
2996
+ * 3600
2997
+ */
2998
+ access_token_expires_in?: number;
2999
+ /**
3000
+ * The expiration time of the OAuth access token
3001
+ * example:
3002
+ * 1715731200
3003
+ */
3004
+ access_token_expires_at?: number;
3005
+ }
3006
+ export interface OAuthIntegration {
3007
+ auth_type: "oauth";
3008
+ oauth: OAuthCredentials;
3009
+ /**
3010
+ * The base URL
3011
+ * example:
3012
+ * https://api.example.com
3013
+ */
3014
+ base_url?: string;
3015
+ }
2922
3016
  /**
2923
3017
  * The opportunity entity
2924
3018
  * example:
@@ -3793,6 +3887,10 @@ declare namespace Components {
3793
3887
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
3794
3888
  */
3795
3889
  description?: string;
3890
+ /**
3891
+ * A detailed description of the price. This is shown on the order document and order table.
3892
+ */
3893
+ long_description?: string;
3796
3894
  price_mappings?: /**
3797
3895
  * example:
3798
3896
  * [
@@ -4129,6 +4227,10 @@ declare namespace Components {
4129
4227
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
4130
4228
  */
4131
4229
  description?: string;
4230
+ /**
4231
+ * A detailed description of the price. This is shown on the order document and order table.
4232
+ */
4233
+ long_description?: string;
4132
4234
  price_mappings?: /**
4133
4235
  * example:
4134
4236
  * [
@@ -5107,7 +5209,7 @@ declare namespace Components {
5107
5209
  CouponWithoutPromoCodes[];
5108
5210
  }
5109
5211
  export type SalesTax = "nontaxable" | "reduced" | "standard";
5110
- export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
5212
+ export type SaveIntegrationCredentialsParams = /* The auth credentials for external integrations */ IntegrationAuthCredentials;
5111
5213
  export interface SearchExternalCatalogParams {
5112
5214
  context: JourneyContext;
5113
5215
  }
@@ -6234,6 +6336,7 @@ export type BasePriceItem = Components.Schemas.BasePriceItem;
6234
6336
  export type BasePriceItemCommon = Components.Schemas.BasePriceItemCommon;
6235
6337
  export type BasePriceItemDto = Components.Schemas.BasePriceItemDto;
6236
6338
  export type BasicAuthCredentials = Components.Schemas.BasicAuthCredentials;
6339
+ export type BasicAuthIntegration = Components.Schemas.BasicAuthIntegration;
6237
6340
  export type BillingPeriod = Components.Schemas.BillingPeriod;
6238
6341
  export type Cart = Components.Schemas.Cart;
6239
6342
  export type CartDto = Components.Schemas.CartDto;
@@ -6274,11 +6377,14 @@ export type File = Components.Schemas.File;
6274
6377
  export type GasConcessionType = Components.Schemas.GasConcessionType;
6275
6378
  export type HistoricMarketPriceRecord = Components.Schemas.HistoricMarketPriceRecord;
6276
6379
  export type HistoricMarketPricesResult = Components.Schemas.HistoricMarketPricesResult;
6380
+ export type IntegrationAuthCredentials = Components.Schemas.IntegrationAuthCredentials;
6277
6381
  export type IntegrationCredentialsResult = Components.Schemas.IntegrationCredentialsResult;
6278
6382
  export type IntegrationId = Components.Schemas.IntegrationId;
6279
6383
  export type JourneyContext = Components.Schemas.JourneyContext;
6280
6384
  export type MarkupPricingModel = Components.Schemas.MarkupPricingModel;
6281
6385
  export type MetaData = Components.Schemas.MetaData;
6386
+ export type OAuthCredentials = Components.Schemas.OAuthCredentials;
6387
+ export type OAuthIntegration = Components.Schemas.OAuthIntegration;
6282
6388
  export type Opportunity = Components.Schemas.Opportunity;
6283
6389
  export type OpportunitySource = Components.Schemas.OpportunitySource;
6284
6390
  export type Order = Components.Schemas.Order;
package/dist/openapi.json CHANGED
@@ -3298,10 +3298,10 @@
3298
3298
  ]
3299
3299
  },
3300
3300
  "IntegrationCredentialsResult": {
3301
- "$ref": "#/components/schemas/BasicAuthCredentials"
3301
+ "$ref": "#/components/schemas/IntegrationAuthCredentials"
3302
3302
  },
3303
3303
  "SaveIntegrationCredentialsParams": {
3304
- "$ref": "#/components/schemas/BasicAuthCredentials"
3304
+ "$ref": "#/components/schemas/IntegrationAuthCredentials"
3305
3305
  },
3306
3306
  "ComputePriceParamsBase": {
3307
3307
  "type": "object",
@@ -3733,8 +3733,61 @@
3733
3733
  "unit_amount_currency"
3734
3734
  ]
3735
3735
  },
3736
+ "OAuthCredentials": {
3737
+ "type": "object",
3738
+ "properties": {
3739
+ "client_id": {
3740
+ "description": "The OAuth client ID",
3741
+ "type": "string",
3742
+ "example": "client_id_123"
3743
+ },
3744
+ "client_secret": {
3745
+ "description": "The OAuth client secret",
3746
+ "type": "string",
3747
+ "example": "client_secret_456"
3748
+ },
3749
+ "authorization_url": {
3750
+ "description": "The URL to obtain OAuth tokens",
3751
+ "type": "string",
3752
+ "example": "https://api.example.com/oauth/token"
3753
+ },
3754
+ "grant_type": {
3755
+ "description": "The OAuth grant type",
3756
+ "type": "string",
3757
+ "enum": [
3758
+ "client_credentials"
3759
+ ],
3760
+ "default": "client_credentials"
3761
+ },
3762
+ "scope": {
3763
+ "description": "The OAuth scope",
3764
+ "type": "string",
3765
+ "example": "read:user write:user"
3766
+ },
3767
+ "access_token": {
3768
+ "description": "The OAuth access token",
3769
+ "type": "string",
3770
+ "example": "access_token_789"
3771
+ },
3772
+ "access_token_expires_in": {
3773
+ "description": "The expiration time of the OAuth access token in seconds",
3774
+ "type": "number",
3775
+ "example": 3600
3776
+ },
3777
+ "access_token_expires_at": {
3778
+ "description": "The expiration time of the OAuth access token",
3779
+ "type": "number",
3780
+ "example": 1715731200
3781
+ }
3782
+ },
3783
+ "required": [
3784
+ "client_id",
3785
+ "client_secret",
3786
+ "authorization_url",
3787
+ "grant_type"
3788
+ ]
3789
+ },
3736
3790
  "BasicAuthCredentials": {
3737
- "description": "The basic auth credentials",
3738
3791
  "type": "object",
3739
3792
  "properties": {
3740
3793
  "username": {
@@ -3746,6 +3799,48 @@
3746
3799
  "description": "The password",
3747
3800
  "type": "string",
3748
3801
  "example": "123456"
3802
+ }
3803
+ },
3804
+ "required": [
3805
+ "username",
3806
+ "password"
3807
+ ]
3808
+ },
3809
+ "BasicAuthIntegration": {
3810
+ "type": "object",
3811
+ "allOf": [
3812
+ {
3813
+ "$ref": "#/components/schemas/BasicAuthCredentials"
3814
+ },
3815
+ {
3816
+ "type": "object",
3817
+ "properties": {
3818
+ "auth_type": {
3819
+ "type": "string",
3820
+ "enum": [
3821
+ "basic_auth"
3822
+ ]
3823
+ },
3824
+ "base_url": {
3825
+ "description": "The base URL",
3826
+ "type": "string",
3827
+ "example": "https://api.example.com"
3828
+ }
3829
+ }
3830
+ }
3831
+ ]
3832
+ },
3833
+ "OAuthIntegration": {
3834
+ "type": "object",
3835
+ "properties": {
3836
+ "auth_type": {
3837
+ "type": "string",
3838
+ "enum": [
3839
+ "oauth"
3840
+ ]
3841
+ },
3842
+ "oauth": {
3843
+ "$ref": "#/components/schemas/OAuthCredentials"
3749
3844
  },
3750
3845
  "base_url": {
3751
3846
  "description": "The base URL",
@@ -3754,8 +3849,20 @@
3754
3849
  }
3755
3850
  },
3756
3851
  "required": [
3757
- "username",
3758
- "password"
3852
+ "auth_type",
3853
+ "oauth"
3854
+ ]
3855
+ },
3856
+ "IntegrationAuthCredentials": {
3857
+ "description": "The auth credentials for external integrations",
3858
+ "type": "object",
3859
+ "oneOf": [
3860
+ {
3861
+ "$ref": "#/components/schemas/BasicAuthIntegration"
3862
+ },
3863
+ {
3864
+ "$ref": "#/components/schemas/OAuthIntegration"
3865
+ }
3759
3866
  ]
3760
3867
  },
3761
3868
  "SearchStreetsResult": {
@@ -3993,6 +4100,10 @@
3993
4100
  "type": "string",
3994
4101
  "description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
3995
4102
  },
4103
+ "long_description": {
4104
+ "type": "string",
4105
+ "description": "A detailed description of the price. This is shown on the order document and order table."
4106
+ },
3996
4107
  "price_mappings": {
3997
4108
  "description": "Price mapping information required to compute totals",
3998
4109
  "$ref": "#/components/schemas/PriceInputMappings"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.47.3",
3
+ "version": "3.48.0-alpha.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",