@story-protocol/core-sdk 0.1.0-rc.1 → 0.1.0-rc.2

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.
@@ -1,5 +1,11 @@
1
1
  export { StoryClient } from "./client.js";
2
2
  export { Environment } from "./enums/environment.js";
3
+ export { ipAssetType } from "./enums/ipAssetType.js";
3
4
  export type { StoryConfig } from "./interfaces/config.js";
4
- export type { Franchise, GetFranchiseRequest, GetFranchiseResponse, CreateFranchiseRequest, CreateFranchiseResponse, } from "./interfaces/resources/franchise.js";
5
+ export type { Franchise, GetFranchiseRequest, GetFranchiseResponse, CreateFranchiseRequest, CreateFranchiseResponse, ListFranchiseResponse, ConfigureFranchiseRequest, ConfigureFranchiseResponse, } from "./interfaces/resources/franchise.js";
6
+ export type { ipAsset, GetIpAssetRequest, GetIpAssetResponse, CreateIpAssetRequest, CreateIpAssetResponse, ListIpAssetRequest, ListIpAssetResponse, } from "./interfaces/resources/ipAsset.js";
7
+ export type { License, GetLicenseRequest, GetLicenseResponse, CreateLicenseRequest, CreateLicenseResponse, CreateLicenseRequestOptions, ListLicenseRequest, ListLicenseResponse, } from "./interfaces/resources/license.js";
8
+ export type { IPAsset, RelationshipRelateRequest, RelationshipRelateResponse, RelationshipUnrelateRequest, RelationshipUnrelateResponse, RelationshipIsRelationshipExpiredRequest, RelationshipIsRelationshipExpiredResponse, RelationshipIsRelatedRequest, RelationshipIsRelatedResponse, } from "./interfaces/resources/relationship.js";
9
+ export type { Collection, CollectIPAssetRequest, CollectIPAssetResponse, ListCollectionsRequest, ListCollectionsResponse, } from "./interfaces/resources/collect.js";
10
+ export type { Transaction, ResourceType, GetTransactionRequest, GetTransactionResponse, ListTransactionResponse, } from "./interfaces/resources/transaction.js";
5
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,YAAY,EAAE,WAAW,EAAE,+BAA4B;AACvD,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,GACxB,4CAAyC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAElD,YAAY,EAAE,WAAW,EAAE,+BAA4B;AAEvD,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,GAC3B,4CAAyC;AAE1C,YAAY,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,GACpB,0CAAuC;AAExC,YAAY,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,0CAAuC;AAExC,YAAY,EACV,OAAO,EACP,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,wCAAwC,EACxC,yCAAyC,EACzC,4BAA4B,EAC5B,6BAA6B,GAC9B,+CAA4C;AAE7C,YAAY,EACV,UAAU,EACV,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,GACxB,0CAAuC;AAExC,YAAY,EACV,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,GACxB,8CAA2C"}
@@ -8,6 +8,7 @@ export interface Franchise {
8
8
  franchiseName: string;
9
9
  ownerAddress: string;
10
10
  tokenUri: string;
11
+ txHash: string;
11
12
  }
12
13
  /**
13
14
  * Request interface for franchise.get method.
@@ -1 +1 @@
1
- {"version":3,"file":"franchise.d.ts","sourceRoot":"../../../../../src/interfaces/resources","sources":["franchise.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB;AACD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AACD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;CACrB;AACD;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"franchise.d.ts","sourceRoot":"../../../../../src/interfaces/resources","sources":["franchise.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB;AACD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AACD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;CACrB;AACD;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -2097,5 +2097,20 @@ var StoryClient = /*#__PURE__*/function () {
2097
2097
  return StoryClient;
2098
2098
  }();
2099
2099
 
2100
+ /**
2101
+ *
2102
+ * @public
2103
+ */
2104
+ var ipAssetType = /*#__PURE__*/function (ipAssetType) {
2105
+ ipAssetType[ipAssetType["STORY"] = 1] = "STORY";
2106
+ ipAssetType[ipAssetType["CHARACTER"] = 2] = "CHARACTER";
2107
+ ipAssetType[ipAssetType["ART"] = 3] = "ART";
2108
+ ipAssetType[ipAssetType["GROUP"] = 4] = "GROUP";
2109
+ ipAssetType[ipAssetType["LOCATION"] = 5] = "LOCATION";
2110
+ ipAssetType[ipAssetType["ITEM"] = 6] = "ITEM";
2111
+ return ipAssetType;
2112
+ }({});
2113
+
2100
2114
  exports.Environment = Environment;
2101
2115
  exports.StoryClient = StoryClient;
2116
+ exports.ipAssetType = ipAssetType;
@@ -2097,5 +2097,20 @@ var StoryClient = /*#__PURE__*/function () {
2097
2097
  return StoryClient;
2098
2098
  }();
2099
2099
 
2100
+ /**
2101
+ *
2102
+ * @public
2103
+ */
2104
+ var ipAssetType = /*#__PURE__*/function (ipAssetType) {
2105
+ ipAssetType[ipAssetType["STORY"] = 1] = "STORY";
2106
+ ipAssetType[ipAssetType["CHARACTER"] = 2] = "CHARACTER";
2107
+ ipAssetType[ipAssetType["ART"] = 3] = "ART";
2108
+ ipAssetType[ipAssetType["GROUP"] = 4] = "GROUP";
2109
+ ipAssetType[ipAssetType["LOCATION"] = 5] = "LOCATION";
2110
+ ipAssetType[ipAssetType["ITEM"] = 6] = "ITEM";
2111
+ return ipAssetType;
2112
+ }({});
2113
+
2100
2114
  exports.Environment = Environment;
2101
2115
  exports.StoryClient = StoryClient;
2116
+ exports.ipAssetType = ipAssetType;
@@ -2070,4 +2070,18 @@ var StoryClient = /*#__PURE__*/function () {
2070
2070
  return StoryClient;
2071
2071
  }();
2072
2072
 
2073
- export { Environment, StoryClient };
2073
+ /**
2074
+ *
2075
+ * @public
2076
+ */
2077
+ var ipAssetType = /*#__PURE__*/function (ipAssetType) {
2078
+ ipAssetType[ipAssetType["STORY"] = 1] = "STORY";
2079
+ ipAssetType[ipAssetType["CHARACTER"] = 2] = "CHARACTER";
2080
+ ipAssetType[ipAssetType["ART"] = 3] = "ART";
2081
+ ipAssetType[ipAssetType["GROUP"] = 4] = "GROUP";
2082
+ ipAssetType[ipAssetType["LOCATION"] = 5] = "LOCATION";
2083
+ ipAssetType[ipAssetType["ITEM"] = 6] = "ITEM";
2084
+ return ipAssetType;
2085
+ }({});
2086
+
2087
+ export { Environment, StoryClient, ipAssetType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@story-protocol/core-sdk",
3
- "version": "0.1.0-rc.1",
3
+ "version": "0.1.0-rc.2",
4
4
  "description": "Story Protocol Core SDK",
5
5
  "main": "dist/story-protocol-core-sdk.cjs.js",
6
6
  "module": "dist/story-protocol-core-sdk.esm.js",