@seamapi/nextlove-sdk-generator 1.7.4 → 1.7.6

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.
@@ -7,7 +7,7 @@ export default (namespaces) => [
7
7
  ` def __init__(self):`,
8
8
  ...namespaces.map((ns) => ` self.${ns} = ${pascalCase(ns)}(seam=self)`),
9
9
  ``,
10
- ` def make_request(self):`,
10
+ ` def make_request(self, method: str, path: str, **kwargs):`,
11
11
  ` raise NotImplementedError()`,
12
12
  ].join("\n");
13
13
  //# sourceMappingURL=routes.py.template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"routes.py.template.js","sourceRoot":"","sources":["../../../src/lib/generate-python-sdk/templates/routes.py.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,eAAe,CAAC,UAAoB,EAAE,EAAE,CACtC;IACE,mCAAmC;IACnC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,EAAE,WAAW,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;IACjE,EAAE;IACF,+BAA+B;IAC/B,uBAAuB;IACvB,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,YAAY,EAAE,MAAM,UAAU,CAAC,EAAE,CAAC,aAAa,CAAC;IAC1E,EAAE;IACF,2BAA2B;IAC3B,iCAAiC;CAClC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
1
+ {"version":3,"file":"routes.py.template.js","sourceRoot":"","sources":["../../../src/lib/generate-python-sdk/templates/routes.py.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,eAAe,CAAC,UAAoB,EAAE,EAAE,CACtC;IACE,mCAAmC;IACnC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,EAAE,WAAW,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;IACjE,EAAE;IACF,+BAA+B;IAC/B,uBAAuB;IACvB,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,YAAY,EAAE,MAAM,UAAU,CAAC,EAAE,CAAC,aAAa,CAAC;IAC1E,EAAE;IACF,6DAA6D;IAC7D,iCAAiC;CAClC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
@@ -2,7 +2,7 @@ export default () => `import os
2
2
 
3
3
  from .routes import Routes
4
4
  import requests
5
- import pkg_resources
5
+ from importlib.metadata import version
6
6
  from typing import Optional, cast
7
7
  from .types import AbstractSeam, SeamApiException
8
8
 
@@ -74,7 +74,7 @@ class Seam(AbstractSeam):
74
74
  """
75
75
 
76
76
  url = self.api_url + path
77
- sdk_version = pkg_resources.get_distribution("seam").version
77
+ sdk_version = version("seam")
78
78
  headers = {
79
79
  "Authorization": "Bearer " + self.api_key,
80
80
  "Content-Type": "application/json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/nextlove-sdk-generator",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "Utilities for building NextLove SDK Generators",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -8,6 +8,6 @@ export default (namespaces: string[]) =>
8
8
  ` def __init__(self):`,
9
9
  ...namespaces.map((ns) => ` self.${ns} = ${pascalCase(ns)}(seam=self)`),
10
10
  ``,
11
- ` def make_request(self):`,
11
+ ` def make_request(self, method: str, path: str, **kwargs):`,
12
12
  ` raise NotImplementedError()`,
13
13
  ].join("\n")
@@ -2,7 +2,7 @@ export default () => `import os
2
2
 
3
3
  from .routes import Routes
4
4
  import requests
5
- import pkg_resources
5
+ from importlib.metadata import version
6
6
  from typing import Optional, cast
7
7
  from .types import AbstractSeam, SeamApiException
8
8
 
@@ -74,7 +74,7 @@ class Seam(AbstractSeam):
74
74
  """
75
75
 
76
76
  url = self.api_url + path
77
- sdk_version = pkg_resources.get_distribution("seam").version
77
+ sdk_version = version("seam")
78
78
  headers = {
79
79
  "Authorization": "Bearer " + self.api_key,
80
80
  "Content-Type": "application/json",