1.0.114 • Published 4 months ago

@zohodesk/haas-api-creator v1.0.114

Weekly downloads
20
License
ISC
Repository
-
Last release
4 months ago

helpcenter_poc

Release Pkg Description - @zohodesk/haas-api-creator

###1.0.114 community/customview related api are added

###1.0.113 kb related api are added

###1.0.111 and 1.0.112 sms setup related api are added

###1.0.103 packages upgraded js-api-creator 1.0.21

1.0.20

packages upgraded js-api-creator and react-cli in package.json.

1.0.88

community api and desk global search api added

1.0.87

Temp attachment api added.

Add your changes and check if it is fine.

$> jsapps/app

$> npm install

$> npm run build

If run build is successfully done. next steps --->

Once changes are ready publish the version. make version changes in package.json

$> npm publish --access public

All completed commit your code.

#haas-api-creator

##How to install

npm i portal-api-creator

###Define :

createPortalAPI(modules==>{ <name> : 'api list' },
 (m)=>"https://myspace.com/space/v1/" ,   ===> prefix will be added for all urls + dynamic changable
 (m)=>globalParameters,                   ===> params will be added for all urls + dynamic changable
 (m)=>headers                             ===> header will be added for all urls + dynamic changable
)

##How to use in your code - example

import createPortalAPI, { kb , community } from 'portal-api-creator'; 

const portalAPIS = createPortalAPI({ kb, community}, (m)=>{
	
	return 'https://myspace.com/api/v1/'

} , (m)=>{

	return { appId : "dsdlfo39o3ksjkskso90939o33i38i383i" }
	
} , (m)=>{

	return {
		hash : "sdflsflsdkfsdkfiwelelqweoqwelqweqkewpelqweqkenqw8j33jj3bnbbdsfhfhdshfshdf"
	}
});


portalAPIS.kb.articles()
portalAPIS.community.topics()
import creatorPortalAPI, { kb } from 'portal-api-creator';
global.portalAPI = creatorPortalAPI({ kb },()=>{
	return "https://my.allows.com/v1/api/"
},()=>{
	return {
		"appPortalId" : "4659fc50aa0a07b8cd88c9af18ee0eb36cf32c3dda4b4401afb6719abeecaa48"
	}
});

global.portalAPI.kb.articles();

##How to use dynamic/custom modules code - example

import APIBuilder from 'portal-api-creator'; 

const builder = APIBuilder((m)=>{
	
	return 'https://myspace.com/api/v1/'

} , (m)=>{

	return { appId : "dsdlfo39o3ksjkskso90939o33i38i383i" }
	
} , (m)=>{

	return {
		hash : "sdflsflsdkfsdkfiwelelqweoqwelqweqkewpelqweqkenqw8j33jj3bnbbdsfhfhdshfshdf"
	}
});

let module1 =  builder.create({ <module1> : <module1 apis> });
let module2  = builder.create({ <module2> : <module2 apis> });
let module3  = builder.create({ <module3> : <module3 apis> });

module3.books()
module2.people()

##Next Works - inside the pattern changes js-api-creator soon.

	entity : {
		
		name : "communityTopics",
		type : ["get","update","delete","create"],
		entity : {
			name : "attachments",
			type : ["get","delete","create"],
			actions : [
				{ name : "content", type : ["get"]  }
			]
		},
		actions : [
			{ name : "like" , type : ["update"]  },
			{ name : "dislike" ,  type : ["update"] },
		]
	}
	
1.0.114

4 months ago

1.0.113

4 months ago

1.0.110

6 months ago

1.0.112

6 months ago

1.0.111

6 months ago

1.0.10-8.beta.1

9 months ago

1.0.109

9 months ago

1.0.107

9 months ago

1.0.106

9 months ago

1.0.108

9 months ago

1.0.105

11 months ago

1.0.103

1 year ago

1.0.102

1 year ago

1.0.101

1 year ago

1.0.100

1 year ago

1.0.99

1 year ago

1.0.98

1 year ago

1.0.97

1 year ago

1.0.95

2 years ago

1.0.94

2 years ago

1.0.93

2 years ago

1.0.96

2 years ago

1.0.91

2 years ago

1.0.92

2 years ago

1.0.9-0.exp.1

2 years ago

1.0.89

2 years ago

1.0.90

2 years ago

1.0.88

2 years ago

1.0.87

2 years ago

1.0.79

3 years ago

1.0.80

3 years ago

1.0.84

3 years ago

1.0.83

3 years ago

1.0.82

3 years ago

1.0.81

3 years ago

1.0.86

2 years ago

1.0.85

3 years ago

1.0.72

4 years ago

1.0.77

4 years ago

1.0.76

4 years ago

1.0.75

4 years ago

1.0.74

4 years ago

1.0.78

3 years ago

1.0.71

4 years ago

1.0.6-5.8

4 years ago

1.0.6-5.5

4 years ago

1.0.6-5.6

4 years ago

1.0.6-5.7

4 years ago

1.0.70

4 years ago

1.0.69

4 years ago

1.0.6-5.3

4 years ago

1.0.6-5.4

4 years ago

1.0.68

4 years ago

1.0.67

4 years ago

1.0.66

4 years ago

1.0.65

4 years ago

1.0.6-5.1

4 years ago

1.0.6-5.2

4 years ago

1.0.6-4.1

4 years ago

1.0.6-4.2

4 years ago

1.0.64

4 years ago

1.0.63

4 years ago

1.0.62

4 years ago

1.0.61

4 years ago

1.0.60

4 years ago

1.0.59

4 years ago

1.0.58

4 years ago

1.0.57

4 years ago

1.0.56

4 years ago

1.0.55

4 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.39

5 years ago

1.0.40

5 years ago

1.0.41

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago